[core] prefer inet_aton() over inet_addr()

master
Glenn Strauss 2 years ago
parent 233a218ab3
commit 3579c32295

@ -410,7 +410,7 @@ if 1:
'getopt',
'getrlimit',
'getuid',
'inet_ntoa',
'inet_aton',
'inet_ntop',
'inet_pton',
'issetugid',

@ -1457,6 +1457,7 @@ AC_CHECK_FUNCS([\
getrlimit \
getuid \
gmtime_r \
inet_aton \
inet_pton \
issetugid \
jrand48 \

@ -164,6 +164,7 @@ check_function_exists(getloadavg HAVE_GETLOADAVG)
check_function_exists(getrlimit HAVE_GETRLIMIT)
check_function_exists(getuid HAVE_GETUID)
check_function_exists(gmtime_r HAVE_GMTIME_R)
check_function_exists(inet_aton HAVE_INET_ATON)
check_function_exists(inet_ntop HAVE_INET_NTOP)
check_function_exists(jrand48 HAVE_JRAND48)
check_function_exists(kqueue HAVE_KQUEUE)

@ -121,6 +121,7 @@ conf_data.set('HAVE_GETLOADAVG', compiler.has_function('getloadavg', args: defs)
conf_data.set('HAVE_GETRLIMIT', compiler.has_function('getrlimit', args: defs))
conf_data.set('HAVE_GETUID', compiler.has_function('getuid', args: defs))
conf_data.set('HAVE_GMTIME_R', compiler.has_function('gmtime_r', args: defs))
conf_data.set('HAVE_INET_ATON', compiler.has_function('inet_aton', args: defs))
conf_data.set('HAVE_INET_NTOP', compiler.has_function('inet_ntop', args: defs))
conf_data.set('HAVE_JRAND48', compiler.has_function('jrand48', args: defs))
conf_data.set('HAVE_KQUEUE', compiler.has_function('kqueue', args: defs))

Loading…
Cancel
Save