mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-04 02:08:49 -04:00
59 lines
1.5 KiB
Plaintext
59 lines
1.5 KiB
Plaintext
$NetBSD: patch-ac,v 1.6 2007/01/03 03:26:31 minskim Exp $
|
|
|
|
--- nfsbug.c.orig 1995-02-16 21:57:27.000000000 -0800
|
|
+++ nfsbug.c
|
|
@@ -14,6 +14,7 @@
|
|
* - close sockets (?)
|
|
*/
|
|
#include <stdio.h>
|
|
+#include <string.h>
|
|
#include <ctype.h>
|
|
#include <netdb.h>
|
|
#include <errno.h>
|
|
@@ -25,18 +26,24 @@
|
|
#include <sys/socket.h>
|
|
#include <netinet/in.h>
|
|
#include <arpa/inet.h>
|
|
-#include <sys/sysmacros.h>
|
|
#include <sys/time.h>
|
|
#include <sys/vnode.h>
|
|
-#include <sys/vfs.h>
|
|
-#include <sys/sysmacros.h>
|
|
+#include <sys/mount.h>
|
|
#ifdef SVR4
|
|
#include <sys/inode.h>
|
|
#else
|
|
#ifndef HPUX
|
|
+#if defined(__NetBSD__) || defined(__APPLE__)
|
|
+#include <ufs/ufs/dinode.h>
|
|
+# if __NetBSD_Version__ >= 200040000
|
|
+ /* at some point, fsid_t's "val" member was renamed to __fsid_val - HF */
|
|
+# define val __fsid_val
|
|
+# endif
|
|
+#else
|
|
#include <ufs/inode.h>
|
|
#endif
|
|
#endif
|
|
+#endif
|
|
|
|
#include "mount.h"
|
|
#include "nfs_prot.h"
|
|
@@ -240,7 +247,7 @@ nfsbug(host)
|
|
} else
|
|
proto = "TCP/IP";
|
|
|
|
- clnt_control(mntclient, CLSET_TIMEOUT, &timeout);
|
|
+ clnt_control(mntclient, CLSET_TIMEOUT, (char *)&timeout);
|
|
mntclient->cl_auth = create_unix_auth(0, 0);
|
|
if (mntclient->cl_auth == NULL) {
|
|
clnt_destroy(mntclient);
|
|
@@ -277,7 +284,7 @@ nfsbug(host)
|
|
} else
|
|
proto = "TCP/IP";
|
|
|
|
- clnt_control(nfsclient, CLSET_TIMEOUT, &timeout);
|
|
+ clnt_control(nfsclient, CLSET_TIMEOUT, (char *)&timeout);
|
|
nfsclient->cl_auth = create_unix_auth(-2, -2); /* well known uid, gid */
|
|
if (nfsclient->cl_auth == NULL) {
|
|
clnt_destroy(nfsclient);
|