--- lsusb.c.orig 2007-10-23 23:04:32.000000000 +0200 +++ lsusb.c 2007-11-14 20:50:37.000000000 +0100 @@ -35,13 +35,29 @@ #include #include #include + +#if defined(HAVE_ASM_BYTEORDER_H) #include #define le16_to_cpu __le16_to_cpu + +#elif defined(HAVE_MACHINE_ENDIAN_H) +#include +#if _BYTE_ORDER == _LITTLE_ENDIAN +#define le16_to_cpu(x) (x) +#else +#define le16_to_cpu __bswap16 +#endif + +#else +#error no le16_to_cpu implementation is available +#endif + #include /* NOTE: that should be and it should include - * ... without it, we keep accumulating + * ... without it, we keep accumulating * potentially broken variants of standard types ... + * also , , etc */ #include "names.h"