summaryrefslogtreecommitdiff
path: root/graphics/netpbm/patches/patch-lib_libsystem.c
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/netpbm/patches/patch-lib_libsystem.c')
-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>