summaryrefslogtreecommitdiff
path: root/sal/inc/osl/semaphor.h
diff options
context:
space:
mode:
authorSander Vesik <svesik@openoffice.org>2001-02-16 00:22:31 +0000
committerSander Vesik <svesik@openoffice.org>2001-02-16 00:22:31 +0000
commit3a233b1b456f686aa29f363b22b3d5737953d9b4 (patch)
tree6798e09198c0dcc987e43c455309a34df818be0a /sal/inc/osl/semaphor.h
parentb8e60e6c8d8d09209c3ad8cf7db695d5982e64a7 (diff)
Add support for NetBSD.
Contributed by: Michael Rauch <mrauch-openoffice@fs.tum.de>
Diffstat (limited to 'sal/inc/osl/semaphor.h')
-rw-r--r--sal/inc/osl/semaphor.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/sal/inc/osl/semaphor.h b/sal/inc/osl/semaphor.h
index 4418bf01f..c241e3863 100644
--- a/sal/inc/osl/semaphor.h
+++ b/sal/inc/osl/semaphor.h
@@ -2,9 +2,9 @@
*
* $RCSfile: semaphor.h,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: martin.maher $ $Date: 2000-09-29 14:44:26 $
+ * last change: $Author: svesik $ $Date: 2001-02-16 01:22:31 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -103,6 +103,14 @@ sal_Bool SAL_CALL osl_tryToAcquireSemaphore(oslSemaphore Semaphore);
*/
sal_Bool SAL_CALL osl_releaseSemaphore(oslSemaphore Semaphore);
+#if defined(NETBSD)
+union semun {
+ int val; /* value for SETVAL */
+ struct semid_ds *buf; /* buffer for IPC_STAT & IPC_SET */
+ u_short *array; /* array for GETALL & SETALL */
+};
+#endif
+
#ifdef __cplusplus
}
#endif