use getopt_long() in dumpcap

for now, there's no long options, this is just a first test to see if
things compile everywhere...

svn path=/trunk/; revision=50877
This commit is contained in:
Martin Kaiser 2013-07-24 20:42:39 +00:00
parent 7a324cfcd6
commit 14c82477bf
1 changed files with 5 additions and 1 deletions

View File

@ -54,6 +54,10 @@
#include <unistd.h>
#endif
#ifdef HAVE_GETOPT_H
#include <getopt.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
@ -4466,7 +4470,7 @@ main(int argc, char *argv[])
global_capture_opts.capture_child = capture_child;
/* Now get our args */
while ((opt = getopt(argc, argv, OPTSTRING)) != -1) {
while ((opt = getopt_long(argc, argv, OPTSTRING, NULL, NULL)) != -1) {
switch (opt) {
case 'h': /* Print help and exit */
print_usage(TRUE);