Skip to content

Commit bdc0d59

Browse files
committed
fix #35
1 parent a38c9ed commit bdc0d59

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

config.h.in

+2-10
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@
1818
/* Define to 1 if you have the `resolv' library (-lresolv). */
1919
#undef HAVE_LIBRESOLV
2020

21-
/* Define to 1 if your system has a GNU libc compatible `malloc' function, and
22-
to 0 otherwise. */
21+
/* Define to 1 if you have the `malloc' function. */
2322
#undef HAVE_MALLOC
2423

2524
/* Define to 1 if you have the <memory.h> header file. */
@@ -34,8 +33,7 @@
3433
/* Define to 1 if you have the <netinet/in.h> header file. */
3534
#undef HAVE_NETINET_IN_H
3635

37-
/* Define to 1 if your system has a GNU libc compatible `realloc' function,
38-
and to 0 otherwise. */
36+
/* Define to 1 if you have the `realloc' function. */
3937
#undef HAVE_REALLOC
4038

4139
/* Define to 1 if you have the <resolv.h> header file. */
@@ -107,12 +105,6 @@
107105
/* Version number of package */
108106
#undef VERSION
109107

110-
/* Define to rpl_malloc if the replacement function should be used. */
111-
#undef malloc
112-
113-
/* Define to rpl_realloc if the replacement function should be used. */
114-
#undef realloc
115-
116108
/* Define to `unsigned int' if <sys/types.h> does not define. */
117109
#undef size_t
118110

configure.ac

+1-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ AC_TYPE_UINT16_T
2828

2929
# Checks for library functions.
3030
# To fix rpl_malloc undefined error in mips cross-compile enviroment.
31-
AC_FUNC_MALLOC
32-
AC_FUNC_REALLOC
31+
AC_CHECK_FUNCS([malloc realloc])
3332
AC_CHECK_FUNCS([inet_ntoa memset select socket strchr strdup strrchr])
3433

3534
AC_ARG_ENABLE([debug],

0 commit comments

Comments
 (0)