]> The Tcpdump Group git mirrors - tcpdump/commitdiff
getservent() is a replaceable function.
authorGuy Harris <[email protected]>
Mon, 22 Jan 2018 02:36:39 +0000 (18:36 -0800)
committerGuy Harris <[email protected]>
Mon, 22 Jan 2018 02:36:39 +0000 (18:36 -0800)
All the functions in that list are either now replaced or aren't
replaceable (we just do without), so remove the TODO comment.

CMakeLists.txt

index 631c455196f6e050923ad37b601919b6e42f2345..039fc481a1ea89ea24d3e02297b17c9ce65b023a 100644 (file)
@@ -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})