pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/wakeup Include "stdlib.h" to get missing prototype...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/daa1d85334e2
branches:  trunk
changeset: 462008:daa1d85334e2
user:      tron <tron%pkgsrc.org@localhost>
date:      Thu Sep 25 12:08:30 2003 +0000

description:
Include "stdlib.h" to get missing prototype for exit(3) to fix build
problem when GCC 3.3.1 is used.

diffstat:

 net/wakeup/distinfo         |   4 ++--
 net/wakeup/patches/patch-aa |  23 +++++++++++++----------
 2 files changed, 15 insertions(+), 12 deletions(-)

diffs (84 lines):

diff -r 34d16db039c7 -r daa1d85334e2 net/wakeup/distinfo
--- a/net/wakeup/distinfo       Thu Sep 25 12:06:05 2003 +0000
+++ b/net/wakeup/distinfo       Thu Sep 25 12:08:30 2003 +0000
@@ -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 -r 34d16db039c7 -r daa1d85334e2 net/wakeup/patches/patch-aa
--- a/net/wakeup/patches/patch-aa       Thu Sep 25 12:06:05 2003 +0000
+++ b/net/wakeup/patches/patch-aa       Thu Sep 25 12:08:30 2003 +0000
@@ -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@localhost
  */
  
 +#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 @@
  
  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 @@
                          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 @@
                  exit(2);
          }
                     
-@@ -85,7 +88,7 @@
+@@ -85,7 +89,7 @@
  
  
  
@@ -46,7 +49,7 @@
  
  int argc;
  char *argv[];
-@@ -98,6 +101,11 @@
+@@ -98,6 +102,11 @@
          int s;
          int i;
  
@@ -58,7 +61,7 @@
          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;



Home | Main Index | Thread Index | Old Index