blob: c9fd15442b6480c9a1a76b0ab0929415e2b93079 (
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
25
|
$NetBSD: patch-ac,v 1.1 2004/09/15 16:45:44 agc Exp $
--- platform/unix.c 2004/09/15 16:35:55 1.1
+++ platform/unix.c 2004/09/15 16:40:46
@@ -77,11 +77,19 @@
#ifdef PHYSFS_HAVE_SYS_UCRED_H
+#if defined(__NetBSD__) && (__NetBSD_Version__ >= 200040000)
+#include <sys/statvfs.h>
+
+#define STATVFS_TYPE statvfs
+#else
+#define STATVFS_TYPE statfs
+#endif
+
char **__PHYSFS_platformDetectAvailableCDs(void)
{
char **retval = (char **) malloc(sizeof (char *));
int cd_count = 1; /* We count the NULL entry. */
- struct statfs *mntbufp = NULL;
+ struct STATVFS_TYPE *mntbufp = NULL;
int mounts;
int i;
|