diff options
Diffstat (limited to 'lib/gnutls_mem.h')
-rw-r--r-- | lib/gnutls_mem.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/gnutls_mem.h b/lib/gnutls_mem.h index a235b1cc4f..07256df6cf 100644 --- a/lib/gnutls_mem.h +++ b/lib/gnutls_mem.h @@ -23,6 +23,8 @@ #ifndef GNUTLS_MEM_H #define GNUTLS_MEM_H +#include <config.h> + /* this realloc function will return ptr if size==0, and * will free the ptr if the new allocation failed. */ @@ -40,6 +42,10 @@ int safe_memcmp(const void *s1, const void *s2, size_t n) return memcmp(s1, s2, n); } +#ifndef HAVE_SECURE_GETENV +# define secure_getenv getenv +#endif + #define zrelease_mpi_key(mpi) if (*mpi!=NULL) { \ _gnutls_mpi_clear(*mpi); \ _gnutls_mpi_release(mpi); \ |