|
Message-ID: <20120930210013.GO254@brightrain.aerifal.cx> Date: Sun, 30 Sep 2012 17:00:13 -0400 From: Rich Felker <dalias@...ifal.cx> To: musl@...ts.openwall.com Subject: Re: better compatibility with bsd getopt() On Sun, Sep 30, 2012 at 11:02:26PM +0200, John Spencer wrote: > On 09/30/2012 10:30 PM, Daniel Cegiełka wrote: > >http://www.openbsd.org/cgi-bin/man.cgi?query=getopt&sektion=3 > > > >regards, > >Daniel > an application that relies on non-posix getopt behaviour should come > with a configure check and use an alternate impl if the getopt > detected is not compatible. > almost any program does so already, but for those that don't (like > iptables) you can use https://github.com/rofl0r/gnu-getopt (tarball > available on sabotage mirror, or in downloads section of the page). > this bundles the netbsd getopt into a standalone library that can > easily be linked to programs. If the only need is option resetting, I think we can handle that without any cost, and avoid linking in duplicate code to meet applications' needs. Rich
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.