From 8afffa97ac892a69466f33499c1a7514776894e5 Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Tue, 3 May 2022 15:33:48 +0200 Subject: [PATCH] [configure] Added check inet_aton --- configure.ac | 2 +- meson.build | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 1791120a..2bf90e5e 100644 --- a/configure.ac +++ b/configure.ac @@ -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) diff --git a/meson.build b/meson.build index 5941f217..e1fa0eda 100644 --- a/meson.build +++ b/meson.build @@ -617,6 +617,10 @@ if compiler.has_function('getpwnam', prefix : '#include ') conf_data.set('HAVE_GETPWNAM', 1) endif +if compiler.has_function('inet_aton', prefix : '#include ') + conf_data.set('HAVE_INET_ATON', 1) +endif + if compiler.has_function('inet_pton', prefix : '#include ') conf_data.set('HAVE_INET_PTON', 1) endif