pgpool2.git / summary / log / commit / refs
commit 130cc1a5fdc1a581b42524fadbd40cafb7c85ef6
Author: Muhammad Usama <m.usama@gmail.com>
Date: Tue Feb 17 14:30:13 2015 +0000
Fixing the compilation issue on BSD variants, Which uses a
different type name for sighandler_t
src/include/utils/pool_signal.h | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/include/utils/pool_signal.h b/src/include/utils/pool_signal.h
index 593ffb16d..3c29d04c1 100644
--- a/src/include/utils/pool_signal.h
+++ b/src/include/utils/pool_signal.h
@@ -38,6 +38,11 @@
#define pool_sigset_t int
#endif
+#ifdef _SYS_SIGNAL_H_
+/* This appears to be a BSD variant which also uses a different type name */
+typedef sig_t sighandler_t;
+#endif
+
extern pool_sigset_t UnBlockSig,
BlockSig,
AuthBlockSig;
@@ -58,7 +63,6 @@ AuthBlockSig;
int pqsigsetmask(int mask);
#endif
#endif
-
typedef void (*pool_sighandler_t) (int);
extern pool_sighandler_t pool_signal(int signo, pool_sighandler_t func);
extern void poolinitmask(void);
[parent: 89e6b8ba6b97]