aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndriy Voskoboinyk <andriivos@gmail.com>2015-06-07 04:38:31 +0300
committerWladimir J. van der Laan <laanwj@gmail.com>2015-06-23 09:03:09 +0200
commit8ea6d37aeed67d42428e38dcf3ee0771c8fff1d1 (patch)
tree76ff6f36a2695d001d807b2b580ce8b6b0332cdc /src
parentb7115995d711ae64fc4a4e5954db7f6130ffee2f (diff)
Add an alternate location of endian.h header
Github-Pull: #6246 Rebased-From: 0640a5eb60b06de61f873fd88ae0252f5a11c339
Diffstat (limited to 'src')
-rw-r--r--src/compat/endian.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compat/endian.h b/src/compat/endian.h
index 4d041d6554..9fec2a07fa 100644
--- a/src/compat/endian.h
+++ b/src/compat/endian.h
@@ -15,6 +15,8 @@
#if defined(HAVE_ENDIAN_H)
#include <endian.h>
+#elif defined(HAVE_SYS_ENDIAN_H)
+#include <sys/endian.h>
#endif
#if defined(WORDS_BIGENDIAN)