summaryrefslogtreecommitdiff
path: root/net/socket++/patches/patch-ag
blob: 96829f1caaeaf408487599e9148d861f2ae1654d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$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;