]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
<alloca.h> only if HAVE_ALLOCA_H
authorMarcin Cieślak <saper@saper.info>
Thu, 9 Feb 2017 00:26:16 +0000 (00:26 +0000)
committerMarcin Cieślak <saper@saper.info>
Thu, 9 Feb 2017 00:26:16 +0000 (00:26 +0000)
FreeBSD does know alloca() but has no such header

Signed-off-by: Marcin Cieślak <saper@SAPER.INFO>
guile/src/core.c
guile/src/utils.c

index 605c91f7af2d07bd8f67f58860b6b0554f5b9dbf..2c38b60235b4d5113e893754292056e6ad49b27e 100644 (file)
@@ -28,7 +28,9 @@
 #include <gnutls/openpgp.h>
 #include <libguile.h>
 
+#ifdef HAVE_ALLOCA_H
 #include <alloca.h>
+#endif
 
 #include "enums.h"
 #include "smobs.h"
index d4ca3b9f0f75a4f3d06e23f51832bc8f1eac2e5b..24aca49100f5594b8ccfadf5797a143bf5209f51 100644 (file)
@@ -26,7 +26,9 @@
 #include <gnutls/gnutls.h>
 #include <libguile.h>
 
+#ifdef HAVE_ALLOCA_H
 #include <alloca.h>
+#endif
 
 #include "enums.h"
 #include "errors.h"