misc: Use stdlib.h instead of malloc.h to make it compile on FreeBSD

/usr/include/malloc.h:3:2: error: #error "<malloc.h> has been replaced by <stdlib.h>"
This commit is contained in:
Holger Hans Peter Freyther 2012-11-09 11:49:22 +01:00
parent 9288d59cfd
commit ac4af14ab1
7 changed files with 7 additions and 7 deletions

View File

@ -17,7 +17,7 @@ AC_PROG_INSTALL
# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([malloc.h netinet/in.h stdint.h string.h])
AC_CHECK_HEADERS([stdlib.h netinet/in.h stdint.h string.h])
found_libxml2=yes
PKG_CHECK_MODULES(LIBXML2, libxml-2.0, , found_libxml2=no)

View File

@ -22,7 +22,7 @@
*/
#include <stdio.h>
#include <string.h>
#include <malloc.h>
#include <stdlib.h>
#include <sys/types.h>
#include <netinet/in.h>

View File

@ -22,7 +22,7 @@
*/
#include <stdio.h>
#include <string.h>
#include <malloc.h>
#include <stdlib.h>
#include <sys/types.h>
#include <netinet/in.h>

View File

@ -22,7 +22,7 @@
*/
#include <stdio.h>
#include <string.h>
#include <malloc.h>
#include <stdlib.h>
#include <sys/types.h>
#include <netinet/in.h>

View File

@ -21,7 +21,7 @@
*
*/
#include <stdio.h>
#include <malloc.h>
#include <stdlib.h>
#include <string.h>
#ifdef __linux__
#include <stdint.h>

View File

@ -22,7 +22,7 @@
*/
#include <stdio.h>
#include <string.h>
#include <malloc.h>
#include <stdlib.h>
#include <sys/types.h>
#include <netinet/in.h>

View File

@ -22,7 +22,7 @@
*/
#include <stdio.h>
#include <string.h>
#include <malloc.h>
#include <stdlib.h>
#include <sys/types.h>
#include <netinet/in.h>