1
1
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:
John Vandenberg 2021-12-03 10:22:58 +08:00 committed by Daniele Varrazzo
parent 4b637ec34a
commit 4d4d2bc444
2 changed files with 4 additions and 0 deletions

View File

@ -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 */

View File

@ -34,6 +34,9 @@
#include <string.h>
#include <stdlib.h>
#ifndef _WIN32
#include <sys/time.h>
#endif
/* python */
#include "datetime.h"