Mac OS X doesn't have endian.h
Signed-off-by: Masami HIRATA <msmhrt(a)gmail.com>
---
src/dbdump.c | 3 +++
src/inspect-apps.c | 3 +++
src/inspect-fs-cd.c | 3 +++
src/inspect-fs-unix.c | 3 +++
src/inspect-fs-windows.c | 3 +++
src/inspect-fs.c | 3 +++
src/inspect.c | 3 +++
7 files changed, 21 insertions(+)
diff --git a/src/dbdump.c b/src/dbdump.c
index 8242dee..ac20b67 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 0ee3954..1b0b5a5 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 12c1a6d..6fec8a5 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 6d57429..433ef5c 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 1a34192..d04024b 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 0859a2b..0050067 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 117f57a..e43f7e7 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>
--
1.7.11.1