Index: src/watchdog/wd_escalation.c
--- src/watchdog/wd_escalation.c.orig
+++ src/watchdog/wd_escalation.c
@@ -27,9 +27,7 @@
 #include <unistd.h>
 #include <errno.h>
 
-#ifdef __FreeBSD__
 #include <sys/wait.h>
-#endif
 
 #include "utils/pool_signal.h"
 #include "utils/elog.h"
