summaryrefslogtreecommitdiff
path: root/Source/Core/Common/Src/CommonFuncs.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/Common/Src/CommonFuncs.h')
-rw-r--r--Source/Core/Common/Src/CommonFuncs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/Core/Common/Src/CommonFuncs.h b/Source/Core/Common/Src/CommonFuncs.h
index 86933fdfa0..d71e9fe24d 100644
--- a/Source/Core/Common/Src/CommonFuncs.h
+++ b/Source/Core/Common/Src/CommonFuncs.h
@@ -30,7 +30,9 @@
char* strndup (char const *s, size_t n);
size_t strnlen(const char *s, size_t n);
#else
+#ifdef __linux__
#include <byteswap.h>
+#endif
#endif // APPLE
#include <errno.h>
// go to debugger mode