Skip site navigation (1) Skip section navigation (2)

Re: stat() vs cygwin

From: Reini Urban <rurban(at)x-ray(dot)at>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: Magnus Hagander <magnus(at)hagander(dot)net>, Dave Page <dpage(at)pgadmin(dot)org>, Bruce Momjian <bruce(at)momjian(dot)us>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: stat() vs cygwin
Date: 2008-06-28 18:24:59
Message-ID: 486681FB.3050105@x-ray.at (view raw or flat)
Thread:
Lists: pgsql-hackers
Andrew Dunstan schrieb:
> Magnus Hagander wrote:
>> Heh. Maybe not dead, but certainly not really alive either ;-) Given the
>> evidence in your patch that clearly 8.3 isn't quite up to speed on
>> cygwin, and nobody has really noticed until now.
>>   
> 
> AIUI, only the gssapi stuff is broken. Most users are not likely to want 
> it on Cygwin I should think. (And plenty of distros are still on 8.2 and 
> earlier, anyway).

Well, native windows users is a very nice to have. Actually a killer 
feature.

> What would be nice would be for Reini to set up a Cygwin buildfarm 
> member that uses all the switches that the Cygwin distro wants to use.

Without ENABLE_SSPI I just need
   --enable-nls --with-CXX --with-openssl --with-perl --with-python
   --with-libxml --with-libxslt --with-ldap
and these build out of the box.

>> I also notice this in auth.c:
>> +#ifdef·__CYGWIN__
>> +#define·WIN32
>> +#endif
>>
>> What is the need to change this for just one file? Seems very fragile -
>> the rest of our codebase assumes WIN32 != CYGWIN, and I think we should
>> keep that consistent.
> 
> Right. We have had significant grief from this in the past, and don't 
> need to return there. If we need it to get correct behaviour from some 
> header file, then it needs to be heavily commented and localised. But I 
> bet there are other ways to get the right result - that's what we've 
> tended to find in the past.

Ok, I copy then the required lines from WIN32.
This was the shortest patch I could come up with and it
worked nice for the auth backend, with SSPI enabled.
-- 
Reini

In response to

pgsql-hackers by date

Next:From: David FetterDate: 2008-06-28 19:38:10
Subject: Re: Git Repository for WITH RECURSIVE and others
Previous:From: Andrew DunstanDate: 2008-06-28 17:50:25
Subject: Re: stat() vs cygwin

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group