diff options
author | minskim <minskim> | 2004-09-16 17:16:18 +0000 |
---|---|---|
committer | minskim <minskim> | 2004-09-16 17:16:18 +0000 |
commit | f8a3013e3fd23826460aef85c9e29363af1d2257 (patch) | |
tree | 85af9a161fab09ba1f709e34e55adfd097759b10 /emulators/pcemu/patches | |
parent | 7ee508836398c2c4bfa17f920322126565b52fa2 (diff) | |
download | pkgsrc-f8a3013e3fd23826460aef85c9e29363af1d2257.tar.gz |
Use statvfs on NetBSD>=2.0D.
Diffstat (limited to 'emulators/pcemu/patches')
-rw-r--r-- | emulators/pcemu/patches/patch-ac | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/emulators/pcemu/patches/patch-ac b/emulators/pcemu/patches/patch-ac index 311a1ed8eaa..e079b4f31fe 100644 --- a/emulators/pcemu/patches/patch-ac +++ b/emulators/pcemu/patches/patch-ac @@ -1,8 +1,8 @@ -$NetBSD: patch-ac,v 1.3 2004/07/09 12:45:03 wiz Exp $ +$NetBSD: patch-ac,v 1.4 2004/09/16 17:16:18 minskim Exp $ ---- mfs.c.orig 1994-06-22 16:24:51.000000000 +0200 +--- mfs.c.orig 1994-06-22 09:24:51.000000000 -0500 +++ mfs.c -@@ -319,7 +319,9 @@ TODO: +@@ -319,17 +319,24 @@ TODO: #include <errno.h> #include <sys/param.h> #include <stdlib.h> @@ -10,9 +10,10 @@ $NetBSD: patch-ac,v 1.3 2004/07/09 12:45:03 wiz Exp $ #include <malloc.h> +#endif - #ifdef SOLARIS +-#ifdef SOLARIS ++#if defined(SOLARIS) || (defined(__NetBSD__) && __NetBSD_Version__ >= 200040000) #include <fcntl.h> -@@ -327,9 +329,14 @@ TODO: + #include <sys/statvfs.h> #endif #if defined(SGI) || defined(RS6000) @@ -29,3 +30,12 @@ $NetBSD: patch-ac,v 1.3 2004/07/09 12:45:03 wiz Exp $ #endif +@@ -768,7 +775,7 @@ get_unix_attr(int mode, int attr) + int + get_disk_space(char *cwd, int *free, int *total) + { +-#ifdef SOLARIS ++#if defined(SOLARIS) || (defined(__NetBSD__) && __NetBSD_Version__ >= 200040000) + struct statvfs fsbuf; + if (statvfs(cwd, &fsbuf) >= 0) + #else |