From: "A. Maitland Bottoms" <bottoms@debian.org>
Forwarded: not-needed
Description: apple mach

__MACH__ is defined on hurd, make sure __APPLE__ is there.
(no semephore_t on hurd)

--- a/src/readerwriterqueue/atomicops.h
+++ b/src/readerwriterqueue/atomicops.h
@@ -397,7 +397,7 @@
 		        ReleaseSemaphore(m_hSema, count, nullptr);
 		    }
 		};
-#elif defined(__MACH__)
+#elif defined(__MACH__) && defined(__APPLE__)
 		//---------------------------------------------------------
 		// Semaphore (Apple iOS and OSX)
 		// Can't use POSIX semaphores due to http://lists.apple.com/archives/darwin-kernel/2009/Apr/msg00010.html
@@ -440,7 +440,7 @@
 		        }
 		    }
 		};
-#elif defined(__unix__)
+#elif defined(__unix__) && !defined(__GNU__)
 		//---------------------------------------------------------
 		// Semaphore (POSIX, Linux)
 		//---------------------------------------------------------
