]> git.saurik.com Git - apple/libc.git/blobdiff - gen/FreeBSD/gethostname.c.patch
Libc-594.9.5.tar.gz
[apple/libc.git] / gen / FreeBSD / gethostname.c.patch
index 018f8bbed6fb5240ace670d84e666ea0d1e863ee..fe4d46624b8e38f0c6e46bd99be17a17c7f2dded 100644 (file)
@@ -1,14 +1,17 @@
---- gethostname.c.orig 2004-11-25 11:38:01.000000000 -0800
-+++ gethostname.c      2005-09-15 09:46:13.000000000 -0700
-@@ -39,6 +39,7 @@ __FBSDID("$FreeBSD: src/lib/libc/gen/get
+--- gethostname.c.orig 2008-04-05 00:47:41.000000000 -0700
++++ gethostname.c      2008-04-05 01:04:59.000000000 -0700
+@@ -37,8 +37,10 @@ static char sccsid[] = "@(#)gethostname.
+ #include <sys/cdefs.h>
+ __FBSDID("$FreeBSD: src/lib/libc/gen/gethostname.c,v 1.5 2003/08/19 23:01:46 wollman Exp $");
  
++#include <string.h>
  #include <sys/param.h>
  #include <sys/sysctl.h>
 +#include <limits.h>
  
  #include <errno.h>
  
-@@ -54,10 +55,22 @@ gethostname(name, namelen)
+@@ -54,10 +56,22 @@ gethostname(name, namelen)
  
        mib[0] = CTL_KERN;
        mib[1] = KERN_HOSTNAME;