summaryrefslogtreecommitdiff
path: root/net/macipgw
diff options
context:
space:
mode:
authorR. Imura <imura@FreeBSD.org>2000-02-12 19:17:21 +0000
committerR. Imura <imura@FreeBSD.org>2000-02-12 19:17:21 +0000
commitf4001e4a495e967d35c8e0b8e887e584a2015ce3 (patch)
treee44f110fb38cabe39a32851044b3e2d7aded0074 /net/macipgw
parentEnable the use of poll() on -current. (diff)
Fix new compiler error in -current.
Submitted by: Alexander Langer <alex@big.endian.de> All no response from: maintainer
Notes
Notes: svn path=/head/; revision=25698
Diffstat (limited to 'net/macipgw')
-rw-r--r--net/macipgw/files/patch-aa28
1 files changed, 28 insertions, 0 deletions
diff --git a/net/macipgw/files/patch-aa b/net/macipgw/files/patch-aa
new file mode 100644
index 000000000000..ef2c52f54714
--- /dev/null
+++ b/net/macipgw/files/patch-aa
@@ -0,0 +1,28 @@
+--- main.c.old Thu Feb 3 15:39:27 2000
++++ main.c Thu Feb 3 16:52:18 2000
+@@ -160,8 +160,8 @@
+ exit (EX_USAGE);
+ }
+
+
+-void main(int argc, char *argv[]) {
++int main(int argc, char *argv[]) {
+ struct sigaction sv;
+ u_long net=0, mask=0, ns=0;
+ char *zone = "*";
+@@ -209,7 +208,7 @@
+ openlog ("macipgw", LOG_PID | gDebug ? LOG_PERROR : 0, LOG_DAEMON);
+
+ sv.sa_handler = die;
+- sv.sa_mask = 0;
++ sigemptyset(&(sv.sa_mask));
+ sv.sa_flags = 0;
+ if (sigaction( SIGTERM, &sv, 0 ) < 0 ) {
+ syslog( LOG_ERR, "sigaction: %m" );
+@@ -243,5 +242,6 @@
+ server();
+
+ die (0);
++ return(0);
+ }
+