libxl: include sys/endian.h for FreeBSD
authorRoger Pau Monne <roger.pau@citrix.com>
Mon, 20 Jul 2015 14:55:00 +0000 (16:55 +0200)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 21 Jul 2015 14:01:12 +0000 (15:01 +0100)
be64toh and friends are declared in sys/endian.h on FreeBSD, so include it
as part of libxl_osdeps.h.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Cc: Ian Jackson <ian.jackson@eu.citrix.com>
Cc: Ian Campbell <ian.campbell@citrix.com>
Cc: Wei Liu <wei.liu2@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/libxl/libxl_osdeps.h

index 08eaf0c201f99a18dc31fd028e6adc73319ba115..b265df89cf35d06cc7a4eb889dec9d1d5574f6b9 100644 (file)
@@ -42,6 +42,7 @@
 #define SYSFS_PCIBACK_DRIVER   "/dev/null"
 #define NETBACK_NIC_NAME       "xnb%u.%d"
 #include <libutil.h>
+#include <sys/endian.h>
 #endif
 
 #ifndef SYSFS_PCIBACK_DRIVER