pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/emulators/pcemu Use statvfs on NetBSD>=2.0D.
details: https://anonhg.NetBSD.org/pkgsrc/rev/7c9138007c15
branches: trunk
changeset: 480611:7c9138007c15
user: minskim <minskim%pkgsrc.org@localhost>
date: Thu Sep 16 17:16:18 2004 +0000
description:
Use statvfs on NetBSD>=2.0D.
diffstat:
emulators/pcemu/distinfo | 4 ++--
emulators/pcemu/patches/patch-ac | 20 +++++++++++++++-----
2 files changed, 17 insertions(+), 7 deletions(-)
diffs (57 lines):
diff -r 10a29ec69024 -r 7c9138007c15 emulators/pcemu/distinfo
--- a/emulators/pcemu/distinfo Thu Sep 16 17:15:25 2004 +0000
+++ b/emulators/pcemu/distinfo Thu Sep 16 17:16:18 2004 +0000
@@ -1,10 +1,10 @@
-$NetBSD: distinfo,v 1.4 2004/07/09 12:45:23 wiz Exp $
+$NetBSD: distinfo,v 1.5 2004/09/16 17:16:18 minskim Exp $
SHA1 (pcemu1.01alpha.tar.gz) = 4c0cf9b3b197e890fbc85dc85ca0d7c75eb145b3
Size (pcemu1.01alpha.tar.gz) = 316257 bytes
SHA1 (patch-aa) = f53e918695b8929688b375c1af6f003b02ffa4ca
SHA1 (patch-ab) = 6636736f76b956a2beb6490785b63f4a131c9c25
-SHA1 (patch-ac) = 0ff6e3057b7b23d606256baf95e6efb742e79257
+SHA1 (patch-ac) = a253d92f7e6dc8838bd8fbb19f5ce235a00b822c
SHA1 (patch-ad) = 5b4c50d591eb5060276015e8b178475de38293fd
SHA1 (patch-ae) = c641955b80afabb688739fca411f3c31c2aa16a7
SHA1 (patch-af) = d36be5e25896ebc66bb2cc11135d61053a7e57ff
diff -r 10a29ec69024 -r 7c9138007c15 emulators/pcemu/patches/patch-ac
--- a/emulators/pcemu/patches/patch-ac Thu Sep 16 17:15:25 2004 +0000
+++ b/emulators/pcemu/patches/patch-ac Thu Sep 16 17:16:18 2004 +0000
@@ -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 @@
#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 @@
#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
Home |
Main Index |
Thread Index |
Old Index