2017-03-18 14:54:23 +01:00
|
|
|
$NetBSD: patch-memtrack.c,v 1.1 2017/03/18 13:54:24 adam Exp $
|
2007-08-05 21:15:47 +02:00
|
|
|
|
2017-03-18 14:54:23 +01:00
|
|
|
Don't include malloc.h; malloc() should be defined in stdlib.h.
|
2012-05-07 03:22:50 +02:00
|
|
|
|
2017-03-18 14:54:23 +01:00
|
|
|
--- memtrack.c.orig 2015-09-26 20:52:49.000000000 +0000
|
2007-08-05 21:15:47 +02:00
|
|
|
+++ memtrack.c
|
2017-03-18 14:54:23 +01:00
|
|
|
@@ -22,9 +22,6 @@
|
2007-08-05 21:15:47 +02:00
|
|
|
|
|
|
|
#define _GNU_SOURCE
|
|
|
|
|
2012-08-10 17:52:12 +02:00
|
|
|
-#if !defined(SYS_FREEBSD) /* FreeBSD declares malloc() in stdlib.h */
|
2007-08-05 21:15:47 +02:00
|
|
|
- #include <malloc.h>
|
|
|
|
-#endif
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|