summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorniklas <niklas@openbsd.org>1998-02-20 10:38:10 +0000
committerniklas <niklas@openbsd.org>1998-02-20 10:38:10 +0000
commitfa7053b985fe0c27aff9ce53ef3756b0743990e1 (patch)
treef303d2e863aad0db725cbbcabaf107cea14c96ee
parentgrammar (diff)
downloadwireguard-openbsd-fa7053b985fe0c27aff9ce53ef3756b0743990e1.tar.xz
wireguard-openbsd-fa7053b985fe0c27aff9ce53ef3756b0743990e1.zip
Our semctl takes a union semun as 4th arg
-rw-r--r--gnu/usr.bin/perl/doio.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gnu/usr.bin/perl/doio.c b/gnu/usr.bin/perl/doio.c
index 00e2e758859..a27e5b9fdd4 100644
--- a/gnu/usr.bin/perl/doio.c
+++ b/gnu/usr.bin/perl/doio.c
@@ -1333,7 +1333,7 @@ SV **sp;
char *a;
I32 id, n, cmd, infosize, getinfo;
I32 ret = -1;
-#ifdef __linux__ /* XXX Need metaconfig test */
+#if defined(__linux__) || defined (__OpenBSD__) /* XXX Need metaconfig test */
union semun unsemds;
#endif
@@ -1365,8 +1365,8 @@ SV **sp;
else if (cmd == GETALL || cmd == SETALL)
{
struct semid_ds semds;
-#ifdef __linux__ /* XXX Need metaconfig test */
-/* linux (and Solaris2?) uses :
+#if defined(__linux__) || defined (__OpenBSD__) /* XXX Need metaconfig test */
+/* linux & OpenBSD (and Solaris2?) uses :
int semctl (int semid, int semnum, int cmd, union semun arg)
union semun {
int val;
@@ -1425,7 +1425,7 @@ SV **sp;
#endif
#ifdef HAS_SEM
case OP_SEMCTL:
-#ifdef __linux__ /* XXX Need metaconfig test */
+#if defined(__linux__) || defined (__OpenBSD__) /* XXX Need metaconfig test */
unsemds.buf = (struct semid_ds *)a;
ret = semctl(id, n, cmd, unsemds);
#else