From aecf3810c22ac5e904b0eb7bfe26e3168f3f4f43 Mon Sep 17 00:00:00 2001 From: dimitri staessens Date: Thu, 10 Aug 2017 22:56:12 +0200 Subject: build: Fix compilation on OS X Sierra --- include/ouroboros/endian.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/ouroboros/endian.h') 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 -- cgit v1.2.3