openbsd-ports/x11/gnome/glom/patches/patch-glom_libglom_connectionpool_cc
2012-04-11 15:32:24 +00:00

16 lines
609 B
Plaintext

$OpenBSD: patch-glom_libglom_connectionpool_cc,v 1.7 2012/04/11 15:32:24 ajacoutot Exp $
--- glom/libglom/connectionpool.cc.orig Thu Mar 29 12:33:41 2012
+++ glom/libglom/connectionpool.cc Wed Apr 11 15:27:37 2012
@@ -599,8 +599,10 @@ bool ConnectionPool::handle_error_cerr_only()
#ifdef G_OS_WIN32
// TODO: This is probably mingw specific
static __p_sig_fn_t previous_sig_handler = SIG_DFL;
-#else
+#elif defined(__linux__)
static sighandler_t previous_sig_handler = SIG_DFL; /* Arbitrary default */
+#else
+static sig_t previous_sig_handler = SIG_DFL;
#endif
/* This is a Linux/Unix signal handler,