]> granicus.if.org Git - postgresql/commitdiff
Add needed #include.
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 19 Nov 2018 22:28:04 +0000 (17:28 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 19 Nov 2018 22:28:04 +0000 (17:28 -0500)
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.

src/backend/commands/copy.c

index b956d2a5d3e93e99c73d497549cd708a951cc49f..a283fcb33adda8c0915ca8c35b789e816d291f94 100644 (file)
@@ -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"