[gnutls-dev] patch for gnutls and alloca use
Philip Brown
phil at bolthole.com
Wed Oct 22 17:52:24 CEST 2003
attached is a small patch for lib/gnutls_mem.h and lib/minitasn1/mem.h,
to respect if HAVE_ALLOCA_H is set by autoconf,
and include alloca.h
This is *REQUIRED* for compiliation on some platforms.
-------------- next part --------------
--- lib/gnutls_mem.h.orig 2003-10-22 17:39:09.956458000 -0400
+++ lib/gnutls_mem.h 2003-10-22 17:40:44.043533000 -0400
@@ -12,6 +12,9 @@
* support alloca.
*/
#ifdef HAVE_ALLOCA
+# ifdef HAVE_ALLOCA_H
+# include <alloca.h>
+# endif
# define gnutls_alloca alloca
# define gnutls_afree(x)
#else
--- lib/minitasn1/mem.h.orig 2003-10-22 18:10:38.529196000 -0400
+++ lib/minitasn1/mem.h 2003-10-22 18:11:51.959797000 -0400
@@ -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
More information about the Gnutls-dev
mailing list