summaryrefslogtreecommitdiff
path: root/pkg.c
diff options
context:
space:
mode:
authorTollef Fog Heen <tfheen@err.no>2009-03-30 21:00:14 +0200
committerTollef Fog Heen <tfheen@err.no>2009-03-30 21:00:14 +0200
commit2e0493a34344480033792f859cc818adc010a17f (patch)
treec4219925715e40c82f6778cf5e1a473f7c0ce7ef /pkg.c
parent7e8a4d6c850092a12ab5164879fb7bfcf45734f0 (diff)
downloadpkg-config-2e0493a34344480033792f859cc818adc010a17f.tar.gz
2009-03-30 Tollef Fog Heen <tfheen@err.no>
* poptparse.c, popthelp.c, poptconfig.c, popt.c, pkg.c, findme.c, configure.in: Check for malloc.h and use that if it exists. Apparently this makes Win32 happier. Thanks to Carlo Bramini for the patch.
Diffstat (limited to 'pkg.c')
-rw-r--r--pkg.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg.c b/pkg.c
index 1ee179e..81cbc3e 100644
--- a/pkg.c
+++ b/pkg.c
@@ -33,6 +33,10 @@
# endif
#endif
+#ifdef HAVE_MALLOC_H
+# include <malloc.h>
+#endif
+
#include <sys/types.h>
#include <dirent.h>
#include <string.h>