summaryrefslogtreecommitdiff
path: root/net/socket++/patches/patch-ad
blob: 75a44299232b8e273f8961e41848fc27311f123a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
$NetBSD: patch-ad,v 1.1.1.1 2005/03/27 17:45:38 wiz Exp $

--- test/tsig-0.C.orig	2003-03-14 19:26:07.000000000 +0100
+++ test/tsig-0.C
@@ -9,6 +9,7 @@
 #include <iostream>
 #include <socket++/sig.h>
 #include <unistd.h>
+#include <signal.h>
 
 using namespace std;
 
@@ -29,9 +30,11 @@ using namespace std;
 	
       // cout << "Pending signals = " << hex << sig::nal.pending () << dec << endl; // commented out by LN
 			sigset_t set;
+#ifdef _SIGSET_NWORDS
 			for (unsigned int i=0; i<_SIGSET_NWORDS; i++) {
 				cout << "sigset[" << i << "]: " << set.__val[i] << endl;
 			}
+#endif
 			for (unsigned int i=1; i<15; i++) {
 				cout << "ispending(" << i << "): " << sig::nal.ispending (i) << endl;
 			}
@@ -58,7 +61,9 @@ int main (int ac, char** av)
   sig::nal.set (SIGQUIT, &squit);
   */
 
+#ifdef _SIGSET_NWORDS
 	cout << "SIGSET_NWORDS: " << _SIGSET_NWORDS << endl;
+#endif
   try {
     hnd illegal (300);
   }