blob: c670d6a4196c252879a1d9162bc3d9a186023fa6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
$NetBSD: patch-ad,v 1.1.1.1 2002/05/02 13:28:15 bouyer Exp $
Use the correct name for the statvfs struct.
--- common-src/statfs.c.orig Sun May 23 11:11:18 1999
+++ common-src/statfs.c Thu Jan 11 12:53:12 2001
@@ -55,7 +55,15 @@
*/
# include <sys/statvfs.h>
# define STATFS_TYP "SVR4 (Irix-5+, Solaris-2, Linux glibc 2.1)"
+#if defined(__sun__) && defined(__svr4__)
+#if defined(_LARGEFILE64_SOURCE)
+# define STATFS_STRUCT statvfs64_t
+#else
+# define STATFS_STRUCT statvfs_t
+#endif /* largefile source */
+#else
# define STATFS_STRUCT struct statvfs
+#endif /* !Solaris */
# define STATFS_TOTAL(buf) (buf).f_blocks
# define STATFS_AVAIL(buf) (buf).f_bavail
# define STATFS_FREE(buf) (buf).f_bfree
|