Files
pkgsrc-ng/graphics/netpbm/patches/patch-ppmdraw
T
2013-09-26 17:14:40 +02:00

14 lines
412 B
Plaintext

$NetBSD: patch-ppmdraw,v 1.1 2007/02/19 02:25:19 rillig Exp $
--- editor/ppmdraw.c.orig Sun Apr 23 21:01:54 2006
+++ editor/ppmdraw.c Sun Feb 18 20:35:09 2007
@@ -1,4 +1,8 @@
+#if defined(__sgi)
+#define _XOPEN_SOURCE 500 /* Needed for strdup(3) */
+#else
#define _XOPEN_SOURCE /* Make sure M_PI is in math.h */
+#endif
#define _BSD_SOURCE /* Make sure strdup is in string.h */
#include <string.h>