aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/um/drivers/cow.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/arch/um/drivers/cow.h b/arch/um/drivers/cow.h
index c54e20a3d21..dc36b222100 100644
--- a/arch/um/drivers/cow.h
+++ b/arch/um/drivers/cow.h
@@ -23,15 +23,15 @@
23#include <netinet/in.h> 23#include <netinet/in.h>
24#if defined(__BYTE_ORDER) 24#if defined(__BYTE_ORDER)
25 25
26#if __BYTE_ORDER == __BIG_ENDIAN 26# if __BYTE_ORDER == __BIG_ENDIAN
27# define ntohll(x) (x) 27# define ntohll(x) (x)
28# define htonll(x) (x) 28# define htonll(x) (x)
29#elif __BYTE_ORDER == __LITTLE_ENDIAN 29# elif __BYTE_ORDER == __LITTLE_ENDIAN
30# define ntohll(x) bswap_64(x) 30# define ntohll(x) bswap_64(x)
31# define htonll(x) bswap_64(x) 31# define htonll(x) bswap_64(x)
32#else 32# else
33# error "Could not determine byte order: __BYTE_ORDER uncorrectly defined" 33# error "Could not determine byte order: __BYTE_ORDER uncorrectly defined"
34#endif 34# endif
35 35
36#else /* ! defined(__BYTE_ORDER) */ 36#else /* ! defined(__BYTE_ORDER) */
37# error "Could not determine byte order: __BYTE_ORDER not defined" 37# error "Could not determine byte order: __BYTE_ORDER not defined"