include sys/wait.h for wait() and friends

the wait()-macros (WEXITSTATUS etc.) live in sys/wait.h as per
1003.1, and on some platforms (notably FreeBSD) compilation will
fail if wait.h isn't included explicitely.
This commit is contained in:
Christoph Moench-Tegeder
2017-09-19 17:31:49 +02:00
parent 8f031d3c20
commit a89084c6b5

View File

@@ -28,6 +28,7 @@
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <libpq-fe.h>
#include <postgres_fe.h>