diff options
author | tron <tron@pkgsrc.org> | 2003-09-25 12:08:30 +0000 |
---|---|---|
committer | tron <tron@pkgsrc.org> | 2003-09-25 12:08:30 +0000 |
commit | 679376036e5dfc1cf28ceca177599d01beac4b2a (patch) | |
tree | c55eca9b26ccc87bc37c7772c11380f5324a7ed1 /net/wakeup | |
parent | 8649e176b30c1c8c2d6f7cf0eddf2aa04a5e8483 (diff) | |
download | pkgsrc-679376036e5dfc1cf28ceca177599d01beac4b2a.tar.gz |
Include "stdlib.h" to get missing prototype for exit(3) to fix build
problem when GCC 3.3.1 is used.
Diffstat (limited to 'net/wakeup')
-rw-r--r-- | net/wakeup/distinfo | 4 | ||||
-rw-r--r-- | net/wakeup/patches/patch-aa | 23 |
2 files changed, 15 insertions, 12 deletions
diff --git a/net/wakeup/distinfo b/net/wakeup/distinfo index 9626d2994e1..3328d2e72f9 100644 --- a/net/wakeup/distinfo +++ b/net/wakeup/distinfo @@ -1,5 +1,5 @@ -$NetBSD: distinfo,v 1.2 2001/04/21 11:23:39 wiz Exp $ +$NetBSD: distinfo,v 1.3 2003/09/25 12:08:30 tron Exp $ SHA1 (hpwake.c.gz) = 9df23297ac93cf48aed2929990b80bff0143675a Size (hpwake.c.gz) = 1193 bytes -SHA1 (patch-aa) = 7e69f75a494133733ef35ab3bef25cf5e683fc22 +SHA1 (patch-aa) = 0104cbbbef74c97ef146a6d41e513eee58073a7b diff --git a/net/wakeup/patches/patch-aa b/net/wakeup/patches/patch-aa index 8a4b1ce2f98..49858095523 100644 --- a/net/wakeup/patches/patch-aa +++ b/net/wakeup/patches/patch-aa @@ -1,16 +1,19 @@ -$NetBSD: patch-aa,v 1.2 1999/11/20 11:54:45 tron Exp $ +$NetBSD: patch-aa,v 1.3 2003/09/25 12:08:30 tron Exp $ ---- hpwake.c.orig Sat Nov 20 12:48:37 1999 -+++ hpwake.c Sat Nov 20 12:49:38 1999 -@@ -16,6 +16,7 @@ +--- hpwake.c.orig 2003-09-25 14:06:58.000000000 +0200 ++++ hpwake.c 2003-09-25 14:07:18.000000000 +0200 +@@ -16,8 +16,10 @@ email: wann@server7.ik.mb.uni-siegen.de */ +#include <ctype.h> #include <stdio.h> #include <string.h> ++#include <stdlib.h> #include <unistd.h> -@@ -26,6 +27,8 @@ + #include <errno.h> + #include <sys/types.h> +@@ -26,6 +28,8 @@ u_char magicpacket[500]; @@ -19,7 +22,7 @@ $NetBSD: patch-aa,v 1.2 1999/11/20 11:54:45 tron Exp $ int get_magicpacket(packet,arg) -@@ -42,7 +45,7 @@ +@@ -42,7 +46,7 @@ for (a = arg; *a; a++) if (*a != ':' && !isxdigit(*a)) { @@ -28,7 +31,7 @@ $NetBSD: patch-aa,v 1.2 1999/11/20 11:54:45 tron Exp $ exit(2); } -@@ -50,7 +53,7 @@ +@@ -50,7 +54,7 @@ &dstaddr[0], &dstaddr[1], &dstaddr[2], &dstaddr[3], &dstaddr[4], &dstaddr[5]); if (k != 6) { @@ -37,7 +40,7 @@ $NetBSD: patch-aa,v 1.2 1999/11/20 11:54:45 tron Exp $ exit(2); } -@@ -85,7 +88,7 @@ +@@ -85,7 +89,7 @@ @@ -46,7 +49,7 @@ $NetBSD: patch-aa,v 1.2 1999/11/20 11:54:45 tron Exp $ int argc; char *argv[]; -@@ -98,6 +101,11 @@ +@@ -98,6 +102,11 @@ int s; int i; @@ -58,7 +61,7 @@ $NetBSD: patch-aa,v 1.2 1999/11/20 11:54:45 tron Exp $ packetsize = get_magicpacket(magicpacket, argv[1]); if ((s = socket(AF_INET, SOCK_DGRAM, 0)) < 0) -@@ -111,7 +119,7 @@ +@@ -111,7 +120,7 @@ server.sin_addr.s_addr = INADDR_ANY; client.sin_family = AF_INET; |