pkgsrc/net/sharity-light/patches/patch-ab
mef f6f4e187ce Updated net/sharity-light 1.2 to 1.3
------------------------------------
(Some lines out of following lines doesn't seem to be included in
previous commit log, so ..including ..)

- Finding the GMT offset of the local time is not straight forward. Added
  an ifdef in kernel.c/kernel_init() to handle Solaris' way of doing it.
- INADDR_NONE is not defined on Solaris. Added workaround to rumba.c

* Release Sharity-Light 1.2 1998-11-24

- Added aSYSTEM and aHIDDEN attributes to smb_proc_unlink(), this allows
  deleting dotfiles on a samba server.

- Added contributed recode code for russian character set (compile time
  option)

* Release Sharity-Light 1.3 2003-12-29
2016-09-01 12:58:46 +00:00

41 lines
1.2 KiB
Text

$NetBSD: patch-ab,v 1.6 2016/09/01 12:58:46 mef Exp $
--- nfs/syscalls.c.orig 2003-12-29 20:11:57.000000000 +0900
+++ nfs/syscalls.c 2016-09-01 21:47:55.000000000 +0900
@@ -19,6 +19,9 @@
#include <arpa/inet.h>
#ifdef __NetBSD__
#include <nfs/nfsmount.h>
+#if __NetBSD_Version__ >= 299000900
+#define statfs statvfs
+#endif
#endif
#include "my_defines.h"
@@ -68,7 +71,7 @@ int syscall_mount(char *dir, void *root_
struct sockaddr_in *socket, char *mntfrom)
{
struct nfs_args nfs_args;
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) || defined(__DragonFly__)
# ifdef _NEW_VFSCONF
struct vfsconf vfc;
int error;
@@ -99,7 +102,7 @@ struct nfs_args nfs_args;
#else
# define NFSNAME MOUNT_NFS
#endif
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) || defined(__DragonFly__)
# ifdef _NEW_VFSCONF
# define GETVFSBYNAME error = getvfsbyname("nfs", &vfc)
# define VFCERROR error
@@ -119,6 +122,8 @@ struct nfs_args nfs_args;
if (VFCERROR)
return -1;
return mount(VFCNFSNAME, dir, 0, &nfs_args);
+#elif defined(__NetBSD__) && __NetBSD_Version__ >=499002400
+ return mount(NFSNAME, dir, 0, &nfs_args, sizeof(nfs_args));
#else /* __FreeBSD__ */
return mount(NFSNAME, dir, 0, &nfs_args);
#endif /* __FreeBSD__ */