about summary refs log tree commit homepage
path: root/m4/ld_wrap.m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4/ld_wrap.m4')
-rw-r--r--m4/ld_wrap.m41
1 files changed, 1 insertions, 0 deletions
diff --git a/m4/ld_wrap.m4 b/m4/ld_wrap.m4
index 6b949e2..835930c 100644
--- a/m4/ld_wrap.m4
+++ b/m4/ld_wrap.m4
@@ -10,6 +10,7 @@ else
         LDFLAGS="-Wl,--wrap=free"
         AC_LINK_IFELSE([AC_LANG_PROGRAM([
                 #include <stdlib.h>
+                int __real_free(void *ptr);
                 static void __wrap_free(void *ptr) { __real_free(ptr); }
                 ],[ free(NULL); ]
         )],