macOS is not FreeBSD. --- inc/stdtp.h.orig 2014-03-24 09:29:24.000000000 -0500 +++ inc/stdtp.h 2018-11-05 09:22:10.000000000 -0600 @@ -49,10 +49,6 @@ #define _WINCE #endif -#if defined(__APPLE__) && !defined(__FreeBSD__) -// MAC OS X is Free BSD -#define __FreeBSD__ 5 -#endif #ifndef _WINCE #include --- src/sync.cpp.orig 2013-02-17 13:47:31.000000000 -0600 +++ src/sync.cpp 2018-11-05 09:21:43.000000000 -0600 @@ -340,7 +340,7 @@ -#if (defined(__GNU_LIBRARY__) && !defined(_SEM_SEMUN_UNDEFINED)) || defined(__FreeBSD__) +#if (defined(__GNU_LIBRARY__) && !defined(_SEM_SEMUN_UNDEFINED)) || defined(__FreeBSD__) || defined(__APPLE__) /* union semun is defined by including */ #else union semun {