summaryrefslogtreecommitdiff
path: root/audio/csound5/patches/patch-ad
blob: d645159a6246d4492c8ae7b7193ba332f7a29b58 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
$NetBSD: patch-ad,v 1.3 2014/02/13 10:10:06 mrg Exp $

--- Top/csound.c.orig	2013-01-07 04:49:34.000000000 -0800
+++ Top/csound.c	2014-02-12 20:35:00.000000000 -0800
@@ -765,7 +765,8 @@
 
 #if defined(ANDROID) || (!defined(LINUX) && !defined(SGI) && \
                          !defined(__HAIKU__) && !defined(__BEOS__) && \
-                         !defined(__MACH__))
+                         !defined(__MACH__) && !defined(__NetBSD__) && \
+			 !defined(__DragonFly__))
   static char *signal_to_string(int sig)
   {
       switch (sig) {
@@ -918,7 +919,7 @@
   }
 
 	static const int sigs[] = {
-#if defined(LINUX) || defined(SGI) || defined(sol) || defined(__MACH__)
+#if defined(LINUX) || defined(SGI) || defined(sol) || defined(__MACH__) || defined(__NetBSD__) || defined(__DragonFly__)
           SIGHUP, SIGINT, SIGQUIT, SIGILL, SIGTRAP, SIGABRT, SIGIOT, SIGBUS,
           SIGFPE, SIGSEGV, SIGPIPE, SIGTERM, SIGXCPU, SIGXFSZ,
 #elif defined(WIN32)