[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: sys/time.h not found error on windows
[Thread Prev] | [Thread Next]
[Date Prev] | [Date Next]
- Subject: Re: sys/time.h not found error on windows
- From: Andreas Schneider <asn@xxxxxxxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Mon, 30 Jun 2014 19:40:04 +0200
- To: libssh@xxxxxxxxxx
On Thursday 26 June 2014 17:00:26 Joseph Southwell wrote: > git master branch src/libcrypto.c has > > #include <sys/time.h> > > This needs to be changed to > > #ifndef WIN32 > #include <sys/time.h> > #endif > > In order to compile successfully on windows. > I have tested that this compiles on VS 2013 Windows SDK 7.1 The correct ways would be to check in ConfigureChecks.cmake for sys/time.h and time.h and then have #ifdef HAVE_SYS_TIME_H #include <sys/time.h> #endif #ifdef HAVE_TIME_H #include <time.h> #endif which should be the correct way to do it for all platforms. Can you create a patch for that? -- andreas -- Andreas Schneider GPG-ID: CC014E3D www.cryptomilk.org asn@xxxxxxxxxxxxxx
sys/time.h not found error on windows | Joseph Southwell <joseph@xxxxxxxxxxxxx> |