summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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>