1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
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)
//---------------------------------------------------------
|