blob: 36b1254197a46a21fa7a27b3826cfdf748a89001 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
$NetBSD: patch-ag,v 1.7 2006/12/06 17:15:22 joerg Exp $
--- etc/afpd/unix.h.orig 2005-01-31 17:01:00.000000000 +0000
+++ etc/afpd/unix.h
@@ -32,7 +32,7 @@ typedef int mode_t;
#define f_frsize f_fsize
#else /* TRU64 */
/* temp fix, was: defined(HAVE_SYS_STATVFS) || defined(__svr4__) */
-#if defined(__svr4__)
+#if defined(__svr4__) || (defined(__NetBSD__) && (__NetBSD_Version__ >= 299000900))
#include <sys/statvfs.h>
#define statfs statvfs
#else /* HAVE_SYS_STATVFS || __svr4__ */
@@ -44,7 +44,9 @@ typedef int mode_t;
#include <sys/mnttab.h>
#endif /* __svr4__ || HAVE_SYS_MNTTAB_H */
-
+#if defined(__DragonFly__)
+#define dqblk ufs_dqblk
+#endif
#if defined(HAVE_SYS_MOUNT_H) || defined(BSD4_4) || \
defined(linux) || defined(ultrix)
|