summaryrefslogtreecommitdiffstats
path: root/src
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-08-05 21:40:59 +0100
commitb9d5373ab30729429d768b4f7e181827902e2cc8 (patch)
tree30a99d9f6b7d90b6d27135f7e3e9c298fc755356 /src
parent85c99c108f93338c21ac25f0894c3de9d896aad2 (diff)
downloadlibguestfs-b9d5373ab30729429d768b4f7e181827902e2cc8.tar.gz
libguestfs-b9d5373ab30729429d768b4f7e181827902e2cc8.tar.xz
libguestfs-b9d5373ab30729429d768b4f7e181827902e2cc8.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> (cherry picked from commit 6e3f8d2511a63bdcfa7c7d0e5414d5643c4ff599)
Diffstat (limited to 'src')
-rw-r--r--src/dbdump.c3
-rw-r--r--src/inspect-apps.c3
-rw-r--r--src/inspect-fs-cd.c3
-rw-r--r--src/inspect-fs-unix.c3
-rw-r--r--src/inspect-fs-windows.c3
-rw-r--r--src/inspect-fs.c3
-rw-r--r--src/inspect.c3
7 files changed, 21 insertions, 0 deletions
diff --git a/src/dbdump.c b/src/dbdump.c
index 8242dee2..ac20b670 100644
--- a/src/dbdump.c
+++ b/src/dbdump.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>
diff --git a/src/inspect-apps.c b/src/inspect-apps.c
index 0ee39546..1b0b5a5f 100644
--- a/src/inspect-apps.c
+++ b/src/inspect-apps.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>
diff --git a/src/inspect-fs-cd.c b/src/inspect-fs-cd.c
index 12c1a6d8..6fec8a5b 100644
--- a/src/inspect-fs-cd.c
+++ b/src/inspect-fs-cd.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>
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>
diff --git a/src/inspect-fs-windows.c b/src/inspect-fs-windows.c
index 1a341927..d04024bc 100644
--- a/src/inspect-fs-windows.c
+++ b/src/inspect-fs-windows.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>
diff --git a/src/inspect-fs.c b/src/inspect-fs.c
index 0859a2b4..00500675 100644
--- a/src/inspect-fs.c
+++ b/src/inspect-fs.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>
diff --git a/src/inspect.c b/src/inspect.c
index 117f57a7..e43f7e77 100644
--- a/src/inspect.c
+++ b/src/inspect.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>