From a6b8e92c053bd43b288e8e1bb51c97e49d3ddec7 Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Tue, 19 Nov 2002 16:56:44 +0000 Subject: [PATCH] Use statfs only on linux and hp-ux systems. --- v7/src/microcode/uxfs.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/v7/src/microcode/uxfs.c b/v7/src/microcode/uxfs.c index 066f7a8e9..47769e8a3 100644 --- a/v7/src/microcode/uxfs.c +++ b/v7/src/microcode/uxfs.c @@ -1,8 +1,8 @@ /* -*-C-*- -$Id: uxfs.c,v 1.21 2001/05/09 03:15:14 cph Exp $ +$Id: uxfs.c,v 1.22 2002/11/19 16:56:44 cph Exp $ -Copyright (c) 1990-2001 Massachusetts Institute of Technology +Copyright (c) 1990-2002 Massachusetts Institute of Technology This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -25,7 +25,13 @@ USA. #include "osfile.h" #include "osio.h" -#ifdef HAVE_STATFS +/* Don't use statfs on unknown systems. It is necessary to enumerate + the set of interesting results for the support to be useful. */ +#if ! ((defined (__linux__)) || (defined (__HPUX__))) +# undef HAVE_STATFS +#endif + +#ifdef HAVE_STATSF # ifdef HAVE_SYS_VFS_H /* GNU/Linux */ # include -- 2.25.1