freebsd-ports/graphics/libgdgeda/files/patch-src::gd.c
Patrick Li 35af01bf20 - Remove including obsolete malloc.h header
- Dont link libc and prevent installing useless files

PR:	32070
Submitted by:	Garrett Wollman <wollman@khavrinen.lcs.mit.edu>
Approved by:	lioux
2001-11-21 03:44:03 +00:00

12 lines
318 B
C

--- src/gd.c.orig Mon Oct 2 21:44:49 2000
+++ src/gd.c Tue Nov 20 22:15:17 2001
@@ -1,6 +1,6 @@
-#ifndef _OSD_POSIX /* _OSD_POSIX defines *alloc() in stdlib.h */
-#include <malloc.h>
-#endif /*_OSD_POSIX*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
#include <stdio.h>
#include <math.h>
#include <string.h>