]> granicus.if.org Git - postgresql/commitdiff
Add missing header include to pmsignal.h.
authorThomas Munro <tmunro@postgresql.org>
Wed, 1 Aug 2018 23:25:31 +0000 (11:25 +1200)
committerThomas Munro <tmunro@postgresql.org>
Thu, 2 Aug 2018 00:14:22 +0000 (12:14 +1200)
pmsignal.h uses sig_atomic_t in some builds, but relied on signal.h
having been included already.  We could include it conditionally
but evidently that wouldn't save anything in practice and would
add more ugly macros, so let's just include signal.h always.

Reported-by: Tom Lane
Discussion: https://postgr.es/m/4166.1533154074%40sss.pgh.pa.us

src/include/storage/pmsignal.h

index 5ecc1b757c8b72a95d4e1873925b98a9f5b810d3..074734156ba59f9e5bb619109936c0d8615f93f1 100644 (file)
@@ -14,6 +14,8 @@
 #ifndef PMSIGNAL_H
 #define PMSIGNAL_H
 
+#include <signal.h>
+
 #ifdef HAVE_SYS_PRCTL_H
 #include "sys/prctl.h"
 #endif