You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by mt...@apache.org on 2011/04/16 13:05:23 UTC

svn commit: r1093963 - /commons/sandbox/runtime/trunk/src/main/native/os/unix/semaphore.c

Author: mturk
Date: Sat Apr 16 11:05:22 2011
New Revision: 1093963

URL: http://svn.apache.org/viewvc?rev=1093963&view=rev
Log:
OpenBSD has sem_open but unusable

Modified:
    commons/sandbox/runtime/trunk/src/main/native/os/unix/semaphore.c

Modified: commons/sandbox/runtime/trunk/src/main/native/os/unix/semaphore.c
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/os/unix/semaphore.c?rev=1093963&r1=1093962&r2=1093963&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/os/unix/semaphore.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/os/unix/semaphore.c Sat Apr 16 11:05:22 2011
@@ -19,6 +19,11 @@
 #include "acr/port.h"
 #include "arch_opts.h"
 
+#if defined(__OpenBSD__)
+/* TODO: OpenBSD has sem_open but it returns ENOSYS */
+# undef  HAVE_POSIX_SEMAPHORE
+# define HAVE_POSIX_SEMAPHORE 0
+#endif
 #if HAVE_POSIX_SEMAPHORE
 #if HAVE_SEMAPHORE_H
 # include <semaphore.h>