summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2013-02-28 17:36:20 +0100
committerVicent Marti <tanoku@gmail.com>2013-02-28 17:36:20 +0100
commit5fa8abb86843950a95d220f90cce49cf8d6df830 (patch)
tree68819f2b98b4d085668ebf6373453ecbb64945e3 /src
parente68e33f33d98c171d31dac33257250b5ecded4c9 (diff)
downloadlibgit2-5fa8abb86843950a95d220f90cce49cf8d6df830.tar.gz
w32-posix: Wrap the `timezone` declaration with a clause
Allows compilation in newer versions of MinGW that already defined it.
Diffstat (limited to 'src')
-rw-r--r--src/win32/posix_w32.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/win32/posix_w32.c b/src/win32/posix_w32.c
index f533eaa5e..c439dadce 100644
--- a/src/win32/posix_w32.c
+++ b/src/win32/posix_w32.c
@@ -487,11 +487,14 @@ p_gmtime_r (const time_t *timer, struct tm *result)
#define DELTA_EPOCH_IN_MICROSECS 11644473600000000ULL
#endif
+#ifndef _TIMEZONE_DEFINED
+#define _TIMEZONE_DEFINED
struct timezone
{
int tz_minuteswest; /* minutes W of Greenwich */
int tz_dsttime; /* type of dst correction */
};
+#endif
int p_gettimeofday(struct timeval *tv, struct timezone *tz)
{