From bdc0d59c46f4cba97d84a4c891a4dc27d71300aa Mon Sep 17 00:00:00 2001 From: clowwindy Date: Mon, 6 Oct 2014 22:54:51 +0800 Subject: [PATCH] fix #35 --- config.h.in | 12 ++---------- configure.ac | 3 +-- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/config.h.in b/config.h.in index ec36b55..12a46e6 100644 --- a/config.h.in +++ b/config.h.in @@ -18,8 +18,7 @@ /* Define to 1 if you have the `resolv' library (-lresolv). */ #undef HAVE_LIBRESOLV -/* Define to 1 if your system has a GNU libc compatible `malloc' function, and - to 0 otherwise. */ +/* Define to 1 if you have the `malloc' function. */ #undef HAVE_MALLOC /* Define to 1 if you have the header file. */ @@ -34,8 +33,7 @@ /* Define to 1 if you have the header file. */ #undef HAVE_NETINET_IN_H -/* Define to 1 if your system has a GNU libc compatible `realloc' function, - and to 0 otherwise. */ +/* Define to 1 if you have the `realloc' function. */ #undef HAVE_REALLOC /* Define to 1 if you have the header file. */ @@ -107,12 +105,6 @@ /* Version number of package */ #undef VERSION -/* Define to rpl_malloc if the replacement function should be used. */ -#undef malloc - -/* Define to rpl_realloc if the replacement function should be used. */ -#undef realloc - /* Define to `unsigned int' if does not define. */ #undef size_t diff --git a/configure.ac b/configure.ac index fe8837f..d4bc852 100644 --- a/configure.ac +++ b/configure.ac @@ -28,8 +28,7 @@ AC_TYPE_UINT16_T # Checks for library functions. # To fix rpl_malloc undefined error in mips cross-compile enviroment. -AC_FUNC_MALLOC -AC_FUNC_REALLOC +AC_CHECK_FUNCS([malloc realloc]) AC_CHECK_FUNCS([inet_ntoa memset select socket strchr strdup strrchr]) AC_ARG_ENABLE([debug],