From: Guy Harris Date: Mon, 22 Jan 2018 02:36:39 +0000 (-0800) Subject: getservent() is a replaceable function. X-Git-Tag: tcpdump-4.99-bp~1431 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/6ccce6f6cd253d95a911ec7a17cfaf9d45d792df getservent() is a replaceable function. All the functions in that list are either now replaced or aren't replaceable (we just do without), so remove the TODO comment. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 631c4551..039fc481 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -248,7 +248,6 @@ check_include_file(limits.h HAVE_LIMITS_H) # # Functions. -# XXX TODO - all from vfprintf to getopt_long have replacements # check_function_exists(vfprintf HAVE_VFPRINTF) check_function_exists(strlcat HAVE_STRLCAT) @@ -583,7 +582,7 @@ endif(ENABLE_SMB) # # Replace missing functions # -foreach(FUNC vfprintf strlcat strlcpy strdup strsep getopt_long) +foreach(FUNC vfprintf strlcat strlcpy strdup strsep getservent getopt_long) string(TOUPPER ${FUNC} FUNC_UPPERCASE) set(HAVE_FUNC_UPPERCASE HAVE_${FUNC_UPPERCASE}) if(NOT ${HAVE_FUNC_UPPERCASE})