Wireshark-bugs: [Wireshark-bugs] [Bug 5608] build fails when it tries to #include <getopt.h>, no
Date: Tue, 9 Aug 2011 14:08:22 -0700 (PDT)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5608

Jeff Morriss <jeff.morriss.ws@xxxxxxxxx> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |jeff.morriss.ws@xxxxxxxxx
         Resolution|                            |FIXED

--- Comment #4 from Jeff Morriss <jeff.morriss.ws@xxxxxxxxx> 2011-08-09 14:08:20 PDT ---
Fixed in rev 38437:

1) configure now defines HAVE_GETOPT if we have the function.

2) The getopt() users all already include unistd.h, so they only need to
include wsutil/wsgetopt.h if we do not HAVE_GETOPT.

As Guy said, if this breaks some other OS, we'll have to figure things out from
there--maybe we need a real HAVE_GETOPT_H check.

I also scheduled this to be backported to 1.6.2 .

-- 
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are watching all bug changes.