# HG changeset patch # User mgerdin # Date 1504001822 -7200 # Node ID 5ee2be48e45e7e2b79a0dcba3d2997970383e352 # Parent f6bb54717132be9468999715eab7d6ac6c13d03d 8186897: semaphore_posix.hpp should not be included on OSX Reviewed-by: stefank, dholmes diff -r f6bb54717132 -r 5ee2be48e45e hotspot/src/os/posix/vm/os_posix.cpp --- a/hotspot/src/os/posix/vm/os_posix.cpp Tue Aug 29 17:17:58 2017 +0200 +++ b/hotspot/src/os/posix/vm/os_posix.cpp Tue Aug 29 12:17:02 2017 +0200 @@ -24,7 +24,6 @@ #include "utilities/globalDefinitions.hpp" #include "prims/jvm.h" -#include "semaphore_posix.hpp" #include "runtime/frame.inline.hpp" #include "runtime/interfaceSupport.hpp" #include "runtime/os.hpp" @@ -32,6 +31,11 @@ #include "utilities/macros.hpp" #include "utilities/vmError.hpp" +#ifndef __APPLE__ +// POSIX unamed semaphores are not supported on OS X. +#include "semaphore_posix.hpp" +#endif + #include #include #include