1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-07 11:49:40 +00:00

Fix brokeness where <malloc.h> was included even though <stdlib.h>

is already there.

Approved by:	portmgr (erwin)
This commit is contained in:
Joerg Wunsch 2007-11-07 12:43:49 +00:00
parent ecf1b3865e
commit 803b0c0738
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=202566
2 changed files with 17 additions and 0 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= libdwarf
PORTVERSION= 20070703
PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= http://reality.sgiweb.org/davea/

View File

@ -0,0 +1,16 @@
--- pro_alloc.c.orig Wed Jul 4 01:37:21 2007
+++ pro_alloc.c Wed Nov 7 12:35:05 2007
@@ -40,11 +40,12 @@
#include "pro_incl.h"
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
+#else
+#include <malloc.h>
#endif /* HAVE_STDLIB_H */
#ifdef HAVE_STRING_H
#include <string.h>
#endif /* HAVE_STRING_H */
-#include <malloc.h>
/*
When each block is allocated, there is a two-word structure