Просмотр исходного кода

Add missing HAVE_INET_NTOP check to silence clang warning about mismatching prototype

Bryan Drewery 13 лет назад
Родитель
Сommit
4f12eeac6a
3 измененных файлов с 5 добавлено и 2 удалено
  1. 1 1
      build/autotools/configure.ac
  2. 1 1
      configure
  3. 3 0
      src/config.h.in

+ 1 - 1
build/autotools/configure.ac

@@ -200,7 +200,7 @@ AC_CHECK_FUNCS([clock fsync getrusage isascii getpassphrase])
 AC_CHECK_FUNCS([memcpy memset random rename snprintf srandom gettime])
 #checkpoint
 AC_CACHE_SAVE
-AC_CHECK_FUNCS([strcasecmp strncasecmp vsnprintf])
+AC_CHECK_FUNCS([strcasecmp strncasecmp vsnprintf inet_ntop])
 
 #autoscan suggested this....
 #These are recommended by autoscan, but no code supports it currently

+ 1 - 1
configure

@@ -8425,7 +8425,7 @@ $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
   fi
 fi
 rm -f confcache
-for ac_func in strcasecmp strncasecmp vsnprintf
+for ac_func in strcasecmp strncasecmp vsnprintf inet_ntop
 do :
   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"

+ 3 - 0
src/config.h.in

@@ -57,6 +57,9 @@
 /* Define to 1 if you have the `gettime' function. */
 #undef HAVE_GETTIME
 
+/* Define to 1 if you have the `inet_ntop' function. */
+#undef HAVE_INET_NTOP
+
 /* Define to 1 if you have the <inttypes.h> header file. */
 #undef HAVE_INTTYPES_H