pkgsrc/sysutils/dvdisaster/patches/patch-memtrack.c

17 lines
408 B
C
Raw Normal View History

$NetBSD: patch-memtrack.c,v 1.1 2017/03/18 13:54:24 adam Exp $
2007-08-05 21:15:47 +02:00
Don't include malloc.h; malloc() should be defined in stdlib.h.
2012-05-07 03:22:50 +02:00
--- memtrack.c.orig 2015-09-26 20:52:49.000000000 +0000
2007-08-05 21:15:47 +02:00
+++ memtrack.c
@@ -22,9 +22,6 @@
2007-08-05 21:15:47 +02:00
#define _GNU_SOURCE
-#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>