summaryrefslogtreecommitdiff
path: root/editcap.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-12-24 17:10:40 -0800
committerGuy Harris <guy@alum.mit.edu>2014-12-25 09:07:51 +0000
commita8f5bbedf14d73b8e57c6d1662d58bfd753b63f3 (patch)
tree2302232630b9ab29da45379b51fb4b1f07840363 /editcap.c
parent144655ec9c820a25666c78b99561799aa3fdcc25 (diff)
downloadwireshark-a8f5bbedf14d73b8e57c6d1662d58bfd753b63f3.tar.gz
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: I642f28202e0b36d2a56a71a80e7c9bd7d6140ba6 Reviewed-on: https://code.wireshark.org/review/6047 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'editcap.c')
-rw-r--r--editcap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/editcap.c b/editcap.c
index 9197e62468..a08123895c 100644
--- a/editcap.c
+++ b/editcap.c
@@ -56,7 +56,7 @@
#include "wtap.h"
-#ifndef HAVE_GETOPT
+#ifndef HAVE_GETOPT_LONG
#include "wsutil/wsgetopt.h"
#endif