mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-02-25 21:20:32 +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"
|
||||
#else
|
||||
#include <arpa/inet.h>
|
||||
#include <sys/time.h>
|
||||
#endif
|
||||
|
||||
/* support routines taken from pg_basebackup/streamutil.c */
|
||||
|
|
|
@ -34,6 +34,9 @@
|
|||
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#ifndef _WIN32
|
||||
#include <sys/time.h>
|
||||
#endif
|
||||
|
||||
/* python */
|
||||
#include "datetime.h"
|
||||
|
|
Loading…
Reference in New Issue
Block a user