[Xapian-devel] cygwin gnu_getopt linkage

Olly Betts olly at survex.com
Wed Mar 24 14:14:47 GMT 2010


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

Cheers,
    Olly



More information about the Xapian-devel mailing list