Wireshark-commits: [Wireshark-commits] rev 38437: /trunk/ /trunk/gtk/: main.c /trunk/: capinfos.c c
Date: Tue, 09 Aug 2011 21:02:13 GMT
http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=38437

User: morriss
Date: 2011/08/09 02:02 PM

Log:
 Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5608 :
 
 getopt() can/should normally be found in unistd.h, so:
 
 - When testing for getopt(), define that we HAVE_GETOPT instead of
   HAVE_GETOPT_H (to avoid confusion).
 - Don't attempt to include getopt.h: not all OS's have it (for example,
   Solaris 9 does not).
 - (All the places which need getopt already include unistd.h (if we have it).)
 
 If this breaks things on some OS, we might need (a real) HAVE_GETOPT_H check.

Directory: /trunk/gtk/
  Changes    Path          Action
  +1 -3      main.c        Modified

Directory: /trunk/
  Changes    Path            Action
  +1 -3      capinfos.c      Modified
  +1 -1      configure.in    Modified
  +1 -3      dumpcap.c       Modified
  +1 -3      editcap.c       Modified
  +1 -3      mergecap.c      Modified
  +4 -6      randpkt.c       Modified
  +1 -3      rawshark.c      Modified
  +1 -3      text2pcap.c     Modified
  +1 -3      tshark.c        Modified