summaryrefslogtreecommitdiff
path: root/graphics/netpbm/patches
diff options
context:
space:
mode:
authorryoon <ryoon>2014-05-16 12:43:52 +0000
committerryoon <ryoon>2014-05-16 12:43:52 +0000
commit4c2bace2d6cc26bc216cf9770933da9f14ac93e0 (patch)
treea8d596e4ab2110031509792a8aa8df64ab600755 /graphics/netpbm/patches
parentdd4c38a9a06c0d298fa6227ae01306d65e0bf8ef (diff)
downloadpkgsrc-4c2bace2d6cc26bc216cf9770933da9f14ac93e0.tar.gz
Fix OpenBSD build
Diffstat (limited to 'graphics/netpbm/patches')
-rw-r--r--graphics/netpbm/patches/patch-lib_libsystem.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/graphics/netpbm/patches/patch-lib_libsystem.c b/graphics/netpbm/patches/patch-lib_libsystem.c
new file mode 100644
index 00000000000..b8e727fdf3b
--- /dev/null
+++ b/graphics/netpbm/patches/patch-lib_libsystem.c
@@ -0,0 +1,17 @@
+$NetBSD: patch-lib_libsystem.c,v 1.1 2014/05/16 12:43:52 ryoon Exp $
+
+* For SIGWINCH and SIGIO, _XOPEN_SOURCE should not be defined under OpenBSD 5.5
+
+--- lib/libsystem.c.orig 2010-07-10 01:38:01.000000000 +0000
++++ lib/libsystem.c
+@@ -12,7 +12,10 @@
+
+ Contributed to the public domain.
+ =============================================================================*/
++/* for SIGWINCH and SIGIO */
++#if !defined(__OpenBSD__)
+ #define _XOPEN_SOURCE
++#endif
+
+ #include <unistd.h>
+ #include <stdlib.h>