pkgsrc/devel/libmemcached/patches/patch-libtest_lite.h
asau f120992044 FreeBSD doesn't have "alloca.h".
This fixes the build on FreeBSD 10.
2014-06-26 20:31:03 +00:00

14 lines
331 B
C

$NetBSD: patch-libtest_lite.h,v 1.3 2014/06/26 20:31:03 asau Exp $
NetBSD doesn't have alloca.h.
--- libtest/lite.h.orig 2014-02-09 11:52:42.000000000 +0000
+++ libtest/lite.h
@@ -53,7 +53,7 @@
#if defined(WIN32)
# include <malloc.h>
-#else
+#elif !defined(__NetBSD__) && !defined(__FreeBSD__)
# include <alloca.h>
#endif