summaryrefslogtreecommitdiffstats
path: root/src/inspect-fs-unix.c
diff options
context:
space:
mode:
authorMasami HIRATA <msmhrt@gmail.com>2012-07-24 23:10:42 +0900
committerRichard W.M. Jones <rjones@redhat.com>2012-07-24 19:18:37 +0100
commit6e3f8d2511a63bdcfa7c7d0e5414d5643c4ff599 (patch)
treede5512ba4307fc0c5f981f289be9459338e32a33 /src/inspect-fs-unix.c
parenta47fa7a65e89d80ba1362b39cb9686e5022b7dce (diff)
downloadlibguestfs-6e3f8d2511a63bdcfa7c7d0e5414d5643c4ff599.tar.gz
libguestfs-6e3f8d2511a63bdcfa7c7d0e5414d5643c4ff599.tar.xz
libguestfs-6e3f8d2511a63bdcfa7c7d0e5414d5643c4ff599.zip
Mac OS X: Added check of #include <endian.h>
Mac OS X doesn't have endian.h Signed-off-by: Masami HIRATA <msmhrt@gmail.com>
Diffstat (limited to 'src/inspect-fs-unix.c')
-rw-r--r--src/inspect-fs-unix.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/inspect-fs-unix.c b/src/inspect-fs-unix.c
index 6d574292..433ef5ce 100644
--- a/src/inspect-fs-unix.c
+++ b/src/inspect-fs-unix.c
@@ -27,7 +27,10 @@
#include <string.h>
#include <sys/stat.h>
#include <errno.h>
+
+#ifdef HAVE_ENDIAN_H
#include <endian.h>
+#endif
#include <pcre.h>