diff options
author | agc <agc> | 2004-09-15 16:45:44 +0000 |
---|---|---|
committer | agc <agc> | 2004-09-15 16:45:44 +0000 |
commit | 7205d69228c4fd0ff85733a926d58ba30f4e09dd (patch) | |
tree | 55337964931fa4f738f7b2acedb35e892d52b9c7 /devel/physfs/patches/patch-ac | |
parent | fc3e20009543f3e08fd271592e2c0fd5735edd87 (diff) | |
download | pkgsrc-7205d69228c4fd0ff85733a926d58ba30f4e09dd.tar.gz |
Fix the build on NetBSD-2.0D and later with statvfs(2).
Diffstat (limited to 'devel/physfs/patches/patch-ac')
-rw-r--r-- | devel/physfs/patches/patch-ac | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/devel/physfs/patches/patch-ac b/devel/physfs/patches/patch-ac new file mode 100644 index 00000000000..c9fd15442b6 --- /dev/null +++ b/devel/physfs/patches/patch-ac @@ -0,0 +1,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; + |