pkgsrc/graphics/netpbm/patches/patch-ppmdraw
rillig a80659b46f Fixed the build on IRIX, which had been broken since about one year,
when the build on Solaris had been fixed, "not affecting other
platforms". ;)
2007-02-19 02:25:19 +00:00

13 lines
412 B
Text

$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>