summaryrefslogtreecommitdiff
path: root/cad/magic/patches/patch-ba
diff options
context:
space:
mode:
Diffstat (limited to 'cad/magic/patches/patch-ba')
-rw-r--r--cad/magic/patches/patch-ba22
1 files changed, 22 insertions, 0 deletions
diff --git a/cad/magic/patches/patch-ba b/cad/magic/patches/patch-ba
new file mode 100644
index 00000000000..d1c455155ff
--- /dev/null
+++ b/cad/magic/patches/patch-ba
@@ -0,0 +1,22 @@
+$NetBSD: patch-ba,v 1.1 2006/02/16 18:06:46 wiz Exp $
+
+--- database/DBmain.c.orig 2001-09-21 15:15:31.000000000 +0000
++++ database/DBmain.c
+@@ -81,7 +81,7 @@ void dbMainDummyClient();
+ DBMainInit(techName)
+ char *techName;
+ {
+-#if !defined(SYSV) && !defined(CYGWIN)
++#if !defined(SYSV) && !defined(CYGWIN) && !defined(__NetBSD__)
+ static struct sigvec vec = {0, 0, 0};
+ #endif
+ SectionID sec_tech, sec_planes, sec_types;
+@@ -96,7 +96,7 @@ DBMainInit(techName)
+ DBVerbose = FALSE;
+
+ /* Handle termination (mainly for case where we run out of memory) */
+-#if defined(SYSV) || defined(CYGWIN)
++#if defined(SYSV) || defined(CYGWIN) || defined(__NetBSD__)
+ signal(SIGTERM,dbMainOnTerm);
+ #else
+ vec.sv_handler = dbMainOnTerm;