mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-02-26 05:30:33 +03:00
Include sys/time.h for gettimeofday
Fixes https://github.com/psycopg/psycopg2/issues/1397
This commit is contained in:
parent
4b637ec34a
commit
4d4d2bc444
|
@ -38,6 +38,7 @@
|
||||||
#include "psycopg/win32_support.h"
|
#include "psycopg/win32_support.h"
|
||||||
#else
|
#else
|
||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
|
#include <sys/time.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* support routines taken from pg_basebackup/streamutil.c */
|
/* support routines taken from pg_basebackup/streamutil.c */
|
||||||
|
|
|
@ -34,6 +34,9 @@
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#ifndef _WIN32
|
||||||
|
#include <sys/time.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
/* python */
|
/* python */
|
||||||
#include "datetime.h"
|
#include "datetime.h"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user