[postgis-devel] getopt.h

Paul Ramsey pramsey at cleverelephant.ca
Fri Dec 18 16:31:24 PST 2009

Sigh. Well I'm planning on doing some MSVC work on PostGIS in the new
year, so perhaps I'll just settle for cleaning up the crappy
cut'n'dump version of getopt we have in place instead.


On Fri, Dec 18, 2009 at 3:29 PM, Mateusz Loskot <mateusz at loskot.net> wrote:
> Paul Ramsey wrote:
>> Don't want to get into a reversion war here... I want to remove the
>> getopt custom junk in loader. I know I broke MinGW, but the solution
>> isn't to add pgis_getopt back in, it's to find a system getopt for
>> MinGW, and it turns out there is one, you just have to test for
>> HAVE_UNISTD and if it isn't there, include <getopt.h> and minGW works
>> fine.
> AFAIU extent of this change, it will effectively forbid building PostGIS
> using Visul C++ for good.
> I know Visual C++ is not officially supported but it is possible in practice
> and I do it from time to time myself.
> Best regards
> --
> Mateusz Loskot
> http://mateusz.loskot.net
> _______________________________________________
> postgis-devel mailing list
> postgis-devel at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-devel

More information about the postgis-devel mailing list