mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-02 07:55:46 +03:00
use AC_CHECK_FUNC to check for strnlen()
This commit is contained in:
1 parent
77e5966c17
commit
3d71f4ee64
2 files changed
+6
-4
No files matched your search
+5
-2
@@ -9,8 +9,8 @@
|
||||
/* Define to 1 if you have the <assert.h> header file. */
|
||||
#undef HAVE_ASSERT_H
|
||||
|
||||
/* Define to 1 if you have the `getaddrinfo' function. */
|
||||
#undef HAVE_GETADDRINFO
|
||||
/* Define to 1 if you have the `getaddrinfo,' function. */
|
||||
#undef HAVE_GETADDRINFO_
|
||||
|
||||
/* Define to 1 if you have the <inttypes.h> header file. */
|
||||
#undef HAVE_INTTYPES_H
|
||||
@@ -58,6 +58,9 @@
|
||||
/* Define to 1 if you have the <string.h> header file. */
|
||||
#undef HAVE_STRING_H
|
||||
|
||||
/* Define to 1 if you have the `strnlen' function. */
|
||||
#undef HAVE_STRNLEN
|
||||
|
||||
/* Define to 1 if you have the `strrchr' function. */
|
||||
#undef HAVE_STRRCHR
|
||||
|
||||
|
||||
+1
-2
@@ -69,8 +69,7 @@ AC_TYPE_SSIZE_T
|
||||
|
||||
# Checks for library functions.
|
||||
AC_FUNC_MALLOC
|
||||
AC_CHECK_FUNCS([memset select socket strcasecmp strrchr getaddrinfo])
|
||||
AC_SEARCH_LIBS(strnlen, c)
|
||||
AC_CHECK_FUNCS([memset select socket strcasecmp strrchr getaddrinfo, strnlen])
|
||||
|
||||
AC_CONFIG_HEADERS([config.h])
|
||||
|
||||
|
||||
Reference in new issue
Block a user