diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1998-02-20 10:38:11 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1998-02-20 10:38:11 +0000 |
commit | 6b7f7cfe8cfff2d79fd9a065425432bc11a6f910 (patch) | |
tree | 1dddccdb0b0725bbf248ed69ce6add65ef15f1e3 /gnu/usr.bin/perl/doio.c | |
parent | ee63b303e4322944110167648e5f8b7ae5d05432 (diff) |
Our semctl takes a union semun as 4th arg
Diffstat (limited to 'gnu/usr.bin/perl/doio.c')
-rw-r--r-- | gnu/usr.bin/perl/doio.c | 8 |
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 |