ee9906d198
No pkgrevision bumps needed.
25 lines
683 B
Text
25 lines
683 B
Text
$NetBSD: patch-ac,v 1.3 2005/09/06 08:10:57 abs Exp $
|
|
|
|
--- platform/unix.c.orig 2003-05-24 05:26:03.000000000 +0200
|
|
+++ platform/unix.c
|
|
@@ -212,11 +212,19 @@ char **__PHYSFS_platformDetectAvailableC
|
|
|
|
#elif (defined PHYSFS_HAVE_SYS_UCRED_H)
|
|
|
|
+#if defined(__NetBSD__) && (__NetBSD_Version__ >= 299000900)
|
|
+#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;
|
|
|