pkgsrc/emulators/xcopilot/patches/patch-ak
tron d82db97703 Fix build with GCC 4.x:
- Use "stdlib.h" to get prototype for alloca() under NetBSD.
- Remove bogus "extern" declaration for a variable which is declared
  "static" later.
- Fix bad lvalue constructs.
2006-06-30 22:14:49 +00:00

13 lines
386 B
Text

$NetBSD: patch-ak,v 1.2 2006/06/30 22:14:49 tron Exp $
--- config.h.in.orig 2006-01-12 20:51:24.000000000 +0000
+++ config.h.in
@@ -71,6 +71,8 @@
/* AIX requires this to be the first thing in the file. */
#if HAVE_ALLOCA_H
# include <alloca.h>
+#elif defined(__DragonFly__) || defined(__FreeBSD__) || defined(__NetBSD__)
+# include <stdlib.h>
#else
# ifdef _AIX
#pragma alloca