[Xapian-devel] cygwin gnu_getopt linkage

Olly Betts olly at survex.com
Thu Apr 15 00:44:19 BST 2010


On Wed, Mar 24, 2010 at 02:14:47PM +0000, Olly Betts wrote:
> On Wed, Mar 24, 2010 at 11:14:48AM +0100, Reini Urban wrote:
> > Unforunately I needed the following snippet for cygwin xapian-1.1
> > <gnu_getopt.h> (for both, core and omega)
> 
> I think it would be better to ensure that we are using out own optarg, etc,
> rather than trying to patch things to work with ones which the C library
> happens to declare.  There's just much less to go wrong that way.
> 
> Does this patch fix the issue?
> 
> http://oligarchy.co.uk/xapian/patches/getopt-namespace.patch

I didn't see any response, but the patch seems an improvement so I've committed
it to trunk.  It would be nice to know if it actually fixes the warnings on
Cygwin still.

Cheers,
    Olly



More information about the Xapian-devel mailing list