summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/gnutls_mem.h3
-rw-r--r--lib/minitasn1/mem.h4
2 files changed, 7 insertions, 0 deletions
diff --git a/lib/gnutls_mem.h b/lib/gnutls_mem.h
index 5a95d1da59..2526ec8d58 100644
--- a/lib/gnutls_mem.h
+++ b/lib/gnutls_mem.h
@@ -12,6 +12,9 @@ typedef void svoid; /* for functions that allocate using gnutls_secure_malloc */
* support alloca.
*/
#ifdef HAVE_ALLOCA
+# ifdef HAVE_ALLOCA_H
+# include <alloca.h>
+# endif
# define gnutls_alloca alloca
# define gnutls_afree(x)
#else
diff --git a/lib/minitasn1/mem.h b/lib/minitasn1/mem.h
index e4af84445d..292212a560 100644
--- a/lib/minitasn1/mem.h
+++ b/lib/minitasn1/mem.h
@@ -5,7 +5,11 @@
* memory leaks may occur in systems which do not
* support alloca.
*/
+#include "../config.h"
#ifdef HAVE_ALLOCA
+# ifdef HAVE_ALLOCA_H
+# include <alloca.h>
+# endif
# define _asn1_alloca alloca
# define _asn1_afree(x)
#else