summaryrefslogtreecommitdiff
path: root/lang/perl5/patches
diff options
context:
space:
mode:
authormycroft <mycroft@pkgsrc.org>1998-04-23 12:14:25 +0000
committermycroft <mycroft@pkgsrc.org>1998-04-23 12:14:25 +0000
commit7fc121d366ec8408509daffaa26d0b6250b36206 (patch)
tree3a54dbbea0dbaa35d0b5aee6e9666ad7ba1e1dd0 /lang/perl5/patches
parent1afebec0252df60d947cd93149cb6d97a239daf0 (diff)
downloadpkgsrc-7fc121d366ec8408509daffaa26d0b6250b36206.tar.gz
Pass the right argument type to semctl().
Diffstat (limited to 'lang/perl5/patches')
-rw-r--r--lang/perl5/patches/patch-ag29
1 files changed, 29 insertions, 0 deletions
diff --git a/lang/perl5/patches/patch-ag b/lang/perl5/patches/patch-ag
new file mode 100644
index 00000000000..3319faf9d48
--- /dev/null
+++ b/lang/perl5/patches/patch-ag
@@ -0,0 +1,29 @@
+--- doio.c.orig Mon Jul 28 21:08:11 1997
++++ doio.c Thu Apr 23 08:09:19 1998
+@@ -1333,7 +1333,7 @@
+ char *a;
+ I32 id, n, cmd, infosize, getinfo;
+ I32 ret = -1;
+-#ifdef __linux__ /* XXX Need metaconfig test */
++#if defined(__linux__) || defined(__NetBSD__) /* XXX Need metaconfig test */
+ union semun unsemds;
+ #endif
+
+@@ -1365,7 +1365,7 @@
+ else if (cmd == GETALL || cmd == SETALL)
+ {
+ struct semid_ds semds;
+-#ifdef __linux__ /* XXX Need metaconfig test */
++#if defined(__linux__) || defined(__NetBSD__) /* XXX Need metaconfig test */
+ /* linux (and Solaris2?) uses :
+ int semctl (int semid, int semnum, int cmd, union semun arg)
+ union semun {
+@@ -1425,7 +1425,7 @@
+ #endif
+ #ifdef HAS_SEM
+ case OP_SEMCTL:
+-#ifdef __linux__ /* XXX Need metaconfig test */
++#if defined(__linux__) || defined(__NetBSD__) /* XXX Need metaconfig test */
+ unsemds.buf = (struct semid_ds *)a;
+ ret = semctl(id, n, cmd, unsemds);
+ #else