a80659b46f
when the build on Solaris had been fixed, "not affecting other platforms". ;)
13 lines
412 B
Text
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>
|