| --- psycopg2-2.7.5/psycopg/win32_support.h.orig 2018-06-17 12:07:41.000000000 -0400 |
| +++ psycopg2-2.7.5/psycopg/win32_support.h 2018-07-15 07:03:05.378882300 -0400 |
| @@ -36,11 +36,8 @@ |
| |
| |
| #ifdef _WIN32 |
| -#ifndef __MINGW32__ |
| extern HIDDEN int gettimeofday(struct timeval * tp, void * tzp); |
| extern HIDDEN void timeradd(struct timeval *a, struct timeval *b, struct timeval *c); |
| -#elif |
| -#endif |
| |
| extern HIDDEN void timersub(struct timeval *a, struct timeval *b, struct timeval *c); |
| #endif |
| --- psycopg2-2.7.5/psycopg/win32_support.c.orig 2018-07-15 07:51:29.118765800 -0400 |
| +++ psycopg2-2.7.5/psycopg/win32_support.c 2018-07-15 07:52:16.077304900 -0400 |
| @@ -30,7 +30,6 @@ |
| |
| #ifdef _WIN32 |
| |
| -#ifndef __MINGW32__ |
| /* millisecond-precision port of gettimeofday for Win32, taken from |
| src/port/gettimeofday.c in PostgreSQL core */ |
| |
| @@ -72,7 +71,6 @@ timeradd(struct timeval *a, struct timev |
| c->tv_sec += 1; |
| } |
| } |
| -#endif /* !defined(__MINGW32__) */ |
| |
| /* timersub is missing on mingw & MS VC */ |
| void |