diff options
author | Alexander Gottwald <alexander.gottwald@s1999.tu-chemnitz.de> | 2004-11-15 15:06:53 +0000 |
---|---|---|
committer | Alexander Gottwald <alexander.gottwald@s1999.tu-chemnitz.de> | 2004-11-15 15:06:53 +0000 |
commit | dd82af84ed67f439444e75ea1d032c082e15db51 (patch) | |
tree | ba069fd043c20624e5723efec4952e376a9c77c4 /Xos.h | |
parent | 618956f1f783a8c330aab8eac425937f0b8e50e1 (diff) |
Bufzilla #1802, http://freedesktop.org/bugzilla/show_bug.cgi?id=1802 Added
mingw (Win32) port
Diffstat (limited to 'Xos.h')
-rw-r--r-- | Xos.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,5 +1,5 @@ /* - * $XdotOrg: xc/include/Xos.h,v 1.1.4.4 2004/02/16 20:55:02 alanc Exp $ + * $XdotOrg: xc/include/Xos.h,v 1.2 2004/04/23 18:43:05 eich Exp $ * $Xorg: Xos.h,v 1.6 2001/02/09 02:03:22 xorgcvs Exp $ * * @@ -211,11 +211,12 @@ struct timezone { #define _POSIX_SOURCE #elif defined(WIN32) #include <time.h> -#if !defined(_WINSOCKAPI_) && !defined(_WILLWINSOCK_) +#if !defined(_WINSOCKAPI_) && !defined(_WILLWINSOCK_) && !defined(_TIMEVAL_DEFINED) && !defined(_STRUCT_TIMEVAL) struct timeval { long tv_sec; /* seconds */ long tv_usec; /* and microseconds */ }; +#define _TIMEVAL_DEFINED #endif #include <sys/timeb.h> #define gettimeofday(t) \ |