add missing declarations of timeval/rusage structs
authorTomas Vondra <[email protected]>
Tue, 1 Mar 2016 03:11:38 +0000 (04:11 +0100)
committerPavan Deolasee <[email protected]>
Fri, 11 Mar 2016 06:27:01 +0000 (11:57 +0530)
src/include/tcop/tcopprot.h

index de4591f110e799d4274931e2ac84ef4bd78c7674..3a6812adebc890eb914e5dc26c15b57f43503e0b 100644 (file)
@@ -25,6 +25,9 @@
 #include "storage/procsignal.h"
 #include "utils/guc.h"
 
+/* needed because of 'struct timeval' and 'struct rusage' */
+#include <sys/time.h>
+#include <sys/resource.h>
 
 /* Required daylight between max_stack_depth and the kernel limit, in bytes */
 #define STACK_DEPTH_SLOP (512 * 1024L)