aboutsummaryrefslogtreecommitdiff
path: root/src/compat/endian.h
diff options
context:
space:
mode:
authorAndriy Voskoboinyk <andriivos@gmail.com>2015-06-07 04:38:31 +0300
committerAndriy Voskoboinyk <andriivos@gmail.com>2015-06-07 04:54:20 +0300
commit0640a5eb60b06de61f873fd88ae0252f5a11c339 (patch)
treead6c3f95f5facb664098cb55fe07213a91ad9a5e /src/compat/endian.h
parent55294a9fb673ab0a7c99b9c18279fe12a5a07890 (diff)
Add an alternate location of endian.h header
Diffstat (limited to 'src/compat/endian.h')
-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)