bug-cvs
[Top][All Lists]
Advanced

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

Re: nanosleep.c & winsock.h (was Re: Windows Build Broken - Feature Bran


From: Derek Robert Price
Subject: Re: nanosleep.c & winsock.h (was Re: Windows Build Broken - Feature Branch)
Date: Thu, 13 May 2004 16:32:35 -0400
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040413

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Conrad T. Pino wrote:

>Hi Derek,
>
>>From: Derek Robert Price
>>
>>Hrm.  How about a declaration with no prototype in unistd.h?  It'll
>>disable MSVC's type checking for calls to select, but it might work.
>>e.g.:
>>
>>int select ();
>
>
>Could I get you a cup of coffee? :)


I think I'm past that point.  I just need sleep.  :)

>The hard issue isn't the "select" function prototype (just a warning).
>
>The hard issue is "nanosleep" needs a "struct timeval" definition in
>order to make the "select" call and a redefinition error occurs when
>"winsock.h" follows "unistd.h" in the same compile.


Ah.  You could try getting just declaring struct timeval in
nanosleep.c past Jim Meyering.  Probably only when the other headers
aren't found, of course.  And assuming it works.  Try it first...

Derek

- --
                *8^)

Email: derek@ximbiot.com

Get CVS support at <http://ximbiot.com>!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFAo9tiLD1OTBfyMaQRArqbAJ9BBmuNqKhXQB8GUazTZk/sJjjsiQCgw14M
3Jpxv6TzASsfMIiIcFIRhjg=
=xKhV
-----END PGP SIGNATURE-----





reply via email to

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