Skip to content

Commit

Permalink
Include sys/time.h for gettimeofday
Browse files Browse the repository at this point in the history
Fixes #1397
  • Loading branch information
jayvdb authored and dvarrazzo committed Dec 3, 2021
1 parent 4b637ec commit 4d4d2bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions psycopg/libpq_support.c
Expand Up @@ -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 */
Expand Down
3 changes: 3 additions & 0 deletions psycopg/replication_cursor_type.c
Expand Up @@ -34,6 +34,9 @@

#include <string.h>
#include <stdlib.h>
#ifndef _WIN32
#include <sys/time.h>
#endif

/* python */
#include "datetime.h"
Expand Down

0 comments on commit 4d4d2bc

Please sign in to comment.