commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r1093963 - /commons/sandbox/runtime/trunk/src/main/native/os/unix/semaphore.c
Date Sat, 16 Apr 2011 11:05:23 GMT
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>



Mime
View raw message