2013-09-26 17:14:40 +02:00

23 lines
933 B
Plaintext

$NetBSD: patch-ag,v 1.1 2006/05/12 07:44:26 joerg Exp $
--- socket++/sig.cpp.orig 2006-05-12 07:32:01.000000000 +0000
+++ socket++/sig.cpp
@@ -21,7 +21,7 @@ typedef sig::phndlist phndlist;
siginit siginit::init;
sig& sig::nal = *siginit::init.s;
-typedef void (*sighnd_type) (...);
+typedef void (*sighnd_type) (int);
extern "C" {
static void sighandler (int signo) {
@@ -153,7 +153,7 @@ void sig::sysresume (int signo, bool set
sa.sa_flags = 0;
}
-#if !(defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__bsdi__) || defined(__sun__) || defined(__linux__) || defined(__APPLE))
+#if !(defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__bsdi__) || defined(__sun__) || defined(__linux__) || defined(__APPLE) || defined(__DragonFly__))
// Early SunOS versions may have SA_INTERRUPT. I can't confirm.
if (set == false)
sa.sa_flags |= SA_INTERRUPT;