From 20503c70478e0f83b7cafebbbb759de801a1d53e Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Wed, 24 Dec 2014 17:10:40 -0800 Subject: Check for getopt_long(), not getopt(). We support three types of platforms: 1) UN*Xes that have both getopt() and getopt_long(); 2) UN*Xes that have getopt() but not getopt_long(); 3) Windows, which has neither. Checking for getopt_long() lets us distinguish between 1) and 2) and build getopt_long() for them. Change-Id: Iaf0f142f9bebaa2eed2128d544ec9786711def45 Reviewed-on: https://code.wireshark.org/review/6045 Reviewed-by: Guy Harris --- rawshark.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rawshark.c') diff --git a/rawshark.c b/rawshark.c index c0a0593096..cbb69afb4d 100644 --- a/rawshark.c +++ b/rawshark.c @@ -60,7 +60,7 @@ # include #endif -#ifndef HAVE_GETOPT +#ifndef HAVE_GETOPT_LONG #include "wsutil/wsgetopt.h" #endif -- cgit v1.2.3