summaryrefslogtreecommitdiff
path: root/cad
diff options
context:
space:
mode:
authordmcmahill <dmcmahill@pkgsrc.org>2006-10-11 05:03:49 +0000
committerdmcmahill <dmcmahill@pkgsrc.org>2006-10-11 05:03:49 +0000
commitc5055365e887e44d6a2dbe43ecb8949aeb1b7978 (patch)
treeb60ba463b87a09e8bf2f07b654053278986389d9 /cad
parentf378d5d96c7c07f13110a2a147168f70457346d0 (diff)
downloadpkgsrc-c5055365e887e44d6a2dbe43ecb8949aeb1b7978.tar.gz
Fix compilation on solaris and probably other systems with a posix
wait(). Patch (or equivalent) will be applied upstream.
Diffstat (limited to 'cad')
-rw-r--r--cad/ng-spice/distinfo3
-rw-r--r--cad/ng-spice/patches/patch-ak24
2 files changed, 26 insertions, 1 deletions
diff --git a/cad/ng-spice/distinfo b/cad/ng-spice/distinfo
index 1658013a126..107a67b02a2 100644
--- a/cad/ng-spice/distinfo
+++ b/cad/ng-spice/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.11 2005/12/28 16:06:37 joerg Exp $
+$NetBSD: distinfo,v 1.12 2006/10/11 05:03:49 dmcmahill Exp $
SHA1 (ng-spice-rework-17.tar.gz) = 5ce17a6dff309fae069e0b1e7309eb1c16b4671b
RMD160 (ng-spice-rework-17.tar.gz) = 2345cbdb608bfb182d33c1a6497408b22acffb77
@@ -13,3 +13,4 @@ SHA1 (patch-ag) = 4cc9952823421b57fffb512e6d50483f706a5211
SHA1 (patch-ah) = f76c5c400ee588f482211997f2d405811b945518
SHA1 (patch-ai) = 874de21ac028eeaf1eada3fa78563a2383d6b3f1
SHA1 (patch-aj) = 6555ae3e2e8f8c63795334e192a6d7c149afc164
+SHA1 (patch-ak) = 934a1eab94881ed57a9116f69d4c72c921451a27
diff --git a/cad/ng-spice/patches/patch-ak b/cad/ng-spice/patches/patch-ak
new file mode 100644
index 00000000000..36e99a79b45
--- /dev/null
+++ b/cad/ng-spice/patches/patch-ak
@@ -0,0 +1,24 @@
+$NetBSD: patch-ak,v 1.1 2006/10/11 05:03:49 dmcmahill Exp $
+
+--- src/frontend/aspice.c.orig 2005-05-30 16:28:30.000000000 -0400
++++ src/frontend/aspice.c
+@@ -168,14 +168,11 @@ sigchild(void)
+ * whether the exit was normal or not.
+ */
+
+-#if defined(__NetBSD__) || defined(SOLARIS)
+- pid_t status;
+-#elif defined(__FreeBSD__) || defined(__APPLE__)
+- int status;
+-#else
+- union wait status;
+-#endif
+-
++/*
++ * On posix systems, wait() is:
++ * pid_t wait(int *status);
++ */
++int status;
+
+
+ void