openbsd-ports/x11/gnome/glom/patches/patch-glom_libglom_connectionpool_cc
2011-12-13 12:08:44 +00:00

16 lines
606 B
Plaintext

$OpenBSD: patch-glom_libglom_connectionpool_cc,v 1.6 2011/12/13 12:08:44 jasper Exp $
--- glom/libglom/connectionpool.cc.orig Tue Dec 13 11:00:38 2011
+++ glom/libglom/connectionpool.cc Tue Dec 13 12:31:55 2011
@@ -589,8 +589,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,