blob: 0172fbb93e2b957bb1944c7dfffd07e1589ac83a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
$NetBSD: patch-ac,v 1.5 2006/04/02 20:10:51 wiz Exp $
--- glob/glob.c.orig 2006-03-10 02:20:45.000000000 +0000
+++ glob/glob.c
@@ -216,13 +216,13 @@ my_realloc (p, n)
# ifdef HAVE_ALLOCA_H
# include <alloca.h>
# else /* Not HAVE_ALLOCA_H. */
-# ifndef _AIX
+# if !defined (_AIX) && !defined (__FreeBSD__)
# ifdef WINDOWS32
# include <malloc.h>
# else
extern char *alloca ();
# endif /* WINDOWS32 */
-# endif /* Not _AIX. */
+# endif /* Not _AIX && not __FreeBSD__. */
# endif /* sparc or HAVE_ALLOCA_H. */
# endif /* GCC. */
|