1
0
Fork 0

[configure] Added check inet_aton

This commit is contained in:
Witold Filipczyk 2022-05-03 15:33:48 +02:00
parent a953baab2d
commit 8afffa97ac
2 changed files with 5 additions and 1 deletions

View File

@ -309,7 +309,7 @@ AC_CHECK_FUNCS(popen uname access chmod alarm timegm mremap)
AC_CHECK_FUNCS(strcasecmp strncasecmp strcasestr strstr strchr strrchr)
AC_CHECK_FUNCS(memmove bcopy stpcpy strdup index isdigit mempcpy memrchr)
AC_CHECK_FUNCS(snprintf vsnprintf asprintf vasprintf)
AC_CHECK_FUNCS(getifaddrs getpwnam inet_pton inet_ntop)
AC_CHECK_FUNCS(getifaddrs getpwnam inet_aton inet_pton inet_ntop)
AC_CHECK_FUNCS(fflush fsync fseeko ftello sigaction)
AC_CHECK_FUNCS(gettimeofday clock_gettime)
AC_CHECK_FUNCS(setitimer, HAVE_SETITIMER=yes)

View File

@ -617,6 +617,10 @@ if compiler.has_function('getpwnam', prefix : '#include <pwd.h>')
conf_data.set('HAVE_GETPWNAM', 1)
endif
if compiler.has_function('inet_aton', prefix : '#include <arpa/inet.h>')
conf_data.set('HAVE_INET_ATON', 1)
endif
if compiler.has_function('inet_pton', prefix : '#include <arpa/inet.h>')
conf_data.set('HAVE_INET_PTON', 1)
endif