[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ::gettimeofday' has not been declared - on cygwin

From: marco atzeri
Subject: Re: ::gettimeofday' has not been declared - on cygwin
Date: Tue, 19 Mar 2013 11:15:01 +0100
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130307 Thunderbird/17.0.4

On 3/19/2013 7:34 AM, Paul Eggert wrote:
On 03/01/2013 08:40 PM in 
<http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00000.html> marco 
atzeri wrote:

reverting the commit:


solves the issue.

Thanks for reporting that.  Most likely the problem is in the following
part of lib/sys_select.in.h.  My guess is that Cygwin is like OSF/1 and
Solaris 2.6 in that <sys/time.h> (and perhaps sys/types.h) include sys/select.h
and we need to catch that, and delegate to the system's header in this case.
Can you please analyze or supply copies of the relevant include files on Cygwin,
so that we can add the appropriate "|| defined __CYGWIN__ && ..."  clauses
below?  We need to know under which circumstances, exactly, the system
<sys/time.h> includes <sys/select.h>, and what macros the system <sys/time.h>
defines to prevent double inclusion, and likewise for <sys/types.h>.


Hi Paul,
I uploaded a bzipped copy of


for what I see <sys/time> includes <sys/types.h> but
none of the two include directly <sys/select.h>

The chain seems:
sys/time.h:#include <cygwin/sys_time.h>
cygwin/sys_time.h:#include <sys/select.h>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]