diff options
Diffstat (limited to 'lib/Handle.cc')
-rw-r--r-- | lib/Handle.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Handle.cc b/lib/Handle.cc index d028c47..279678d 100644 --- a/lib/Handle.cc +++ b/lib/Handle.cc @@ -2,12 +2,15 @@ #include <string.h> #include <errno.h> #include <fcntl.h> -#include <byteswap.h> #ifdef HAVE_CONFIG_H #include "config.h" #endif +#if defined HAVE_BYTESWAP_H && defined WORDS_BIGENDIAN +#include <byteswap.h> +#endif + #ifdef HAVE_UNISTD_H #include <unistd.h> #else |