diff options
author | Tollef Fog Heen <tfheen@err.no> | 2009-03-30 21:00:14 +0200 |
---|---|---|
committer | Tollef Fog Heen <tfheen@err.no> | 2009-03-30 21:00:14 +0200 |
commit | 2e0493a34344480033792f859cc818adc010a17f (patch) | |
tree | c4219925715e40c82f6778cf5e1a473f7c0ce7ef | |
parent | 7e8a4d6c850092a12ab5164879fb7bfcf45734f0 (diff) |
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.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | configure.in | 2 | ||||
-rw-r--r-- | findme.c | 4 | ||||
-rw-r--r-- | pkg.c | 4 | ||||
-rw-r--r-- | popt.c | 4 | ||||
-rw-r--r-- | poptconfig.c | 4 | ||||
-rw-r--r-- | popthelp.c | 4 | ||||
-rw-r--r-- | poptparse.c | 4 |
8 files changed, 30 insertions, 1 deletions
@@ -1,5 +1,10 @@ 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. + * pkg-config.1: Verbosify the text about Libs.private a bit. Patch from Loïc Minier. diff --git a/configure.in b/configure.in index e7cf124..d118cc6 100644 --- a/configure.in +++ b/configure.in @@ -137,6 +137,6 @@ fi # !native_win32 AC_FUNC_ALLOCA AC_CHECK_FUNCS(setresuid setreuid,break) -AC_CHECK_HEADERS([dirent.h unistd.h sys/wait.h]) +AC_CHECK_HEADERS([dirent.h unistd.h sys/wait.h malloc.h]) AC_OUTPUT([Makefile check/Makefile]) @@ -30,6 +30,10 @@ # endif #endif +#ifdef HAVE_MALLOC_H +# include <malloc.h> +#endif + #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -33,6 +33,10 @@ # endif #endif +#ifdef HAVE_MALLOC_H +# include <malloc.h> +#endif + #include <sys/types.h> #include <dirent.h> #include <string.h> @@ -29,6 +29,10 @@ # endif #endif +#ifdef HAVE_MALLOC_H +# include <malloc.h> +#endif + #include <errno.h> #include <ctype.h> #include <fcntl.h> diff --git a/poptconfig.c b/poptconfig.c index a3a085d..1492dd6 100644 --- a/poptconfig.c +++ b/poptconfig.c @@ -35,6 +35,10 @@ in this Software without prior written authorization from the X Consortium. # endif #endif +#ifdef HAVE_MALLOC_H +# include <malloc.h> +#endif + #include <ctype.h> #include <errno.h> #include <fcntl.h> @@ -35,6 +35,10 @@ in this Software without prior written authorization from the X Consortium. # endif #endif +#ifdef HAVE_MALLOC_H +# include <malloc.h> +#endif + #include <ctype.h> #include <stdio.h> #include <stdlib.h> diff --git a/poptparse.c b/poptparse.c index 16d75a2..18087fb 100644 --- a/poptparse.c +++ b/poptparse.c @@ -35,6 +35,10 @@ in this Software without prior written authorization from the X Consortium. # endif #endif +#ifdef HAVE_MALLOC_H +# include <malloc.h> +#endif + #include <ctype.h> #include <stdlib.h> #include <string.h> |