diff options
author | Guy Harris <guy@alum.mit.edu> | 2014-12-24 17:10:40 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2014-12-25 09:07:51 +0000 |
commit | a8f5bbedf14d73b8e57c6d1662d58bfd753b63f3 (patch) | |
tree | 2302232630b9ab29da45379b51fb4b1f07840363 /editcap.c | |
parent | 144655ec9c820a25666c78b99561799aa3fdcc25 (diff) | |
download | wireshark-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -56,7 +56,7 @@ #include "wtap.h" -#ifndef HAVE_GETOPT +#ifndef HAVE_GETOPT_LONG #include "wsutil/wsgetopt.h" #endif |