summaryrefslogtreecommitdiff
path: root/include/ouroboros/endian.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/ouroboros/endian.h')
-rw-r--r--include/ouroboros/endian.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/ouroboros/endian.h b/include/ouroboros/endian.h
index 873aff73..f93428b7 100644
--- a/include/ouroboros/endian.h
+++ b/include/ouroboros/endian.h
@@ -24,7 +24,8 @@
#ifndef OUROBOROS_ENDIAN_H
#define OUROBOROS_ENDIAN_H
-#if defined(__linux__) || defined(__CYGWIN__) || defined(__MACH__)
+#if defined(__linux__) || defined(__CYGWIN__) || \
+ (defined(__MACH__) && !defined(__APPLE__))
#ifndef _BSD_SOURCE
#define _BSD_SOURCE