blob: 5aa212a3b23557524eeea381899b73ae7cce9ed5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
$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>
|