fix nfs-kernel-server compile
authorFelix Fietkau <nbd@openwrt.org>
Sun, 30 Dec 2007 15:55:21 +0000 (15:55 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 30 Dec 2007 15:55:21 +0000 (15:55 +0000)
SVN-Revision: 10055

net/nfs-kernel-server/patches/001-nfs_utils_1.0.6_uclibc.patch

index 2bba10d..22a213e 100644 (file)
@@ -1,7 +1,13 @@
---- nfs-utils-1.0.6/support/nfs/svc_socket.c.orig      2004-12-12 06:43:52.000000000 +0000
-+++ nfs-utils-1.0.6/support/nfs/svc_socket.c   2004-12-12 06:50:04.000000000 +0000
-@@ -66,6 +66,7 @@
-   __bzero ((char *) &addr, sizeof (addr));
+Index: nfs-utils-1.0.7/support/nfs/svc_socket.c
+===================================================================
+--- nfs-utils-1.0.7.orig/support/nfs/svc_socket.c      2007-12-30 16:52:24.647893048 +0100
++++ nfs-utils-1.0.7/support/nfs/svc_socket.c   2007-12-30 16:53:46.880579218 +0100
+@@ -63,9 +63,10 @@
+       }
+     }
+-  __bzero ((char *) &addr, sizeof (addr));
++  memset((char *) &addr, 0, sizeof (addr));
    addr.sin_family = AF_INET;
  
 +#ifndef __UCLIBC__    /* neither getrpcbynumber() nor getrpcbynumber_r() is SuSv3 */