aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2018-11-19 17:28:04 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2018-11-19 17:28:04 -0500
commite2631255e48faff5541259eb775afed0ee96e856 (patch)
tree9ebc91fb7bdb3000312b073e999b2f5e68847db2 /src
parent8dc49a8934de023c08890035d96916994bd9b297 (diff)
downloadpostgresql-e2631255e48faff5541259eb775afed0ee96e856.tar.gz
postgresql-e2631255e48faff5541259eb775afed0ee96e856.zip
Add needed #include.
Per POSIX, WIFSIGNALED and related macros are provided by <sys/wait.h>. Apparently on Linux they're also pulled in by some other inclusions, but BSD-ish systems are pickier. Fixes portability issue in ffa4cbd62. Per buildfarm.
Diffstat (limited to 'src')
-rw-r--r--src/backend/commands/copy.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/backend/commands/copy.c b/src/backend/commands/copy.c
index 0f7f2100993..8ce8ab2c2a3 100644
--- a/src/backend/commands/copy.c
+++ b/src/backend/commands/copy.c
@@ -17,6 +17,7 @@
#include <ctype.h>
#include <unistd.h>
#include <sys/stat.h>
+#include <sys/wait.h>
#include "access/heapam.h"
#include "access/htup_details.h"