Fix missing gettimeofday() declaration.
authorNoah Misch <noah@leadboat.com>
Wed, 2 Jun 2021 01:04:14 +0000 (18:04 -0700)
committerNoah Misch <noah@leadboat.com>
Wed, 2 Jun 2021 01:04:14 +0000 (18:04 -0700)
This avoids a warning under MinGW versions having gettimeofday(), per
buildfarm member walleye.

src/interfaces/libpq/fe-trace.c

index ed4247be673a4478ea1650f9be7e70dff321f2ad..76a6d1ebe2d5c12e0c78d9d59613bba12856c6b7 100644 (file)
 
 #include <ctype.h>
 #include <limits.h>
+#include <sys/time.h>
 #include <time.h>
 
 #ifdef WIN32
 #include "win32.h"
 #else
 #include <unistd.h>
-#include <sys/time.h>
 #endif
 
 #include "libpq-fe.h"