summaryrefslogtreecommitdiff
path: root/audio/pd/patches/patch-extra_pd~_pd~.c
diff options
context:
space:
mode:
Diffstat (limited to 'audio/pd/patches/patch-extra_pd~_pd~.c')
-rw-r--r--audio/pd/patches/patch-extra_pd~_pd~.c31
1 files changed, 31 insertions, 0 deletions
diff --git a/audio/pd/patches/patch-extra_pd~_pd~.c b/audio/pd/patches/patch-extra_pd~_pd~.c
new file mode 100644
index 00000000000..efaa2b1a246
--- /dev/null
+++ b/audio/pd/patches/patch-extra_pd~_pd~.c
@@ -0,0 +1,31 @@
+$NetBSD: patch-extra_pd~_pd~.c,v 1.1.1.1 2011/09/15 01:05:05 wiz Exp $
+
+Add missing include (for SIGPIPE).
+Define extensions for NetBSD.
+
+--- extra/pd~/pd~.c.orig 2010-07-28 20:55:17.000000000 +0000
++++ extra/pd~/pd~.c
+@@ -6,6 +6,7 @@
+ */
+
+ #include <stdio.h>
++#include <signal.h>
+ #include <string.h>
+ #include <unistd.h>
+ #include <stdlib.h>
+@@ -56,6 +57,15 @@ static char pd_tilde_dllextent[] = ".l_i
+ pd_tilde_dllextent2[] = ".pd_linux";
+ #endif
+ #endif
++#if defined(__NetBSD__)
++#ifdef __x86_64__
++static char pd_tilde_dllextent[] = ".n_ia64",
++ pd_tilde_dllextent2[] = ".pd_netbsd";
++#else
++static char pd_tilde_dllextent[] = ".n_i386",
++ pd_tilde_dllextent2[] = ".pd_netbsd";
++#endif
++#endif
+ #ifdef __APPLE__
+ static char pd_tilde_dllextent[] = ".d_fat",
+ pd_tilde_dllextent2[] = ".pd_darwin";