freebsd-skq/lib/libstand/zutil.h.diff
peter c7181950f3 Reimplement malloc/free debugging that includes the offending file:line
info.  This turned out to be rather useful on ia64 for tracking down
malloc/free problems.
Detect duplicate free()'s - otherwise these show up as a guard1 failure
and it looks like corruption instead of something simple like a second
free() where there shouldn't be.
Deal with libz using libc headers and not seeing the malloc/free stuff that
we provide in libstand.  Do similar nastiness to what is done for bzlib.

Tested on: i386, ia64 (compile, run)
2002-07-20 04:18:20 +00:00

16 lines
278 B
Diff

$FreeBSD$
--- zutil.h Fri Jun 28 23:58:21 2002
+++ zutil.h Fri Jun 28 23:56:24 2002
@@ -15,11 +15,7 @@
#include "zlib.h"
-#ifdef STDC
-# include <stddef.h>
-# include <string.h>
-# include <stdlib.h>
-#endif
+#include "stand.h"
#ifdef NO_ERRNO_H
extern int errno;