summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/include/tcop/tcopprot.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/include/tcop/tcopprot.h b/src/include/tcop/tcopprot.h
index de4591f110..3a6812adeb 100644
--- a/src/include/tcop/tcopprot.h
+++ b/src/include/tcop/tcopprot.h
@@ -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)