summaryrefslogtreecommitdiff
path: root/lib/gnutls_mem.h
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2002-03-17 23:09:19 +0000
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2002-03-17 23:09:19 +0000
commit8c01ae46cbfa0340a436ec1cc5c21eb5512bec55 (patch)
tree8b13b76374d7a78bc97ea6900da0e438e4e30785 /lib/gnutls_mem.h
parent3e9dbef7cef9959018be38cde0aeec00bd0154ac (diff)
downloadgnutls-8c01ae46cbfa0340a436ec1cc5c21eb5512bec55.tar.gz
Added hooks for electric fence
Diffstat (limited to 'lib/gnutls_mem.h')
-rw-r--r--lib/gnutls_mem.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gnutls_mem.h b/lib/gnutls_mem.h
index ae8f5e7389..f0eff9c580 100644
--- a/lib/gnutls_mem.h
+++ b/lib/gnutls_mem.h
@@ -7,10 +7,10 @@
typedef void svoid; /* for functions that allocate using gnutls_secure_free */
-#ifdef USE_DMALLOC
+#ifdef USE_LIBCALLOC
# define gnutls_malloc malloc
# define gnutls_realloc realloc
-# define gnutls_realloc_fast realloc
+# define gnutls_realloc_fast(x, y) (y==0?x:realloc(x, y))
# define gnutls_free free
# define gnutls_calloc calloc
# define gnutls_secure_malloc malloc