summaryrefslogtreecommitdiff
path: root/www/amaya/patches/patch-ag
blob: d486b8d502dbc6dd1e6bcfca7b676304bf703e6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
$NetBSD: patch-ag,v 1.6 2006/10/07 19:16:57 schwarz Exp $

--- ../tools/cextract-1.7/xtract.h.orig	2006-10-07 20:26:18.000000000 +0200
+++ ../tools/cextract-1.7/xtract.h	2006-10-07 20:29:52.000000000 +0200
@@ -15,7 +15,8 @@
 #include <stdio.h>
 #include <ctype.h>
 #include <time.h>
-#ifdef _POSIX_SOURCE
+#if defined(_POSIX_SOURCE) || defined(__APPLE__)
+/* Darwin defines malloc() in stdlib.h. */
 #include <stdlib.h>
 #endif /* _POSIX_SOURCE_ */
 #if __STDC__