[BACK]Return to patch-ac CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / shells / ast-ksh / patches

File: [cvs.NetBSD.org] / pkgsrc / shells / ast-ksh / patches / Attic / patch-ac (download)

Revision 1.2, Sun Dec 2 12:55:09 2007 UTC (12 years, 9 months ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2012Q1-base, pkgsrc-2012Q1, pkgsrc-2011Q4-base, pkgsrc-2011Q4, pkgsrc-2011Q3-base, pkgsrc-2011Q3, pkgsrc-2011Q2-base, pkgsrc-2011Q2, pkgsrc-2011Q1-base, pkgsrc-2011Q1, pkgsrc-2010Q4-base, pkgsrc-2010Q4, pkgsrc-2010Q3-base, pkgsrc-2010Q3, pkgsrc-2010Q2-base, pkgsrc-2010Q2, pkgsrc-2010Q1-base, pkgsrc-2010Q1, pkgsrc-2009Q4-base, pkgsrc-2009Q4, pkgsrc-2009Q3-base, pkgsrc-2009Q3, pkgsrc-2009Q2-base, pkgsrc-2009Q2, pkgsrc-2009Q1-base, pkgsrc-2009Q1, pkgsrc-2008Q4-base, pkgsrc-2008Q4, pkgsrc-2008Q3-base, pkgsrc-2008Q3, pkgsrc-2008Q2-base, pkgsrc-2008Q2, pkgsrc-2008Q1-base, pkgsrc-2008Q1, pkgsrc-2007Q4-base, pkgsrc-2007Q4, cwrapper, cube-native-xorg-base, cube-native-xorg
Changes since 1.1: +2 -2 lines

Standardize statvfs test. From Sergey Svishchev.

$NetBSD: patch-ac,v 1.2 2007/12/02 12:55:09 wiz Exp $

--- src/lib/libast/port/mnt.c.orig	2002-09-26 16:33:59.000000000 +0000
+++ src/lib/libast/port/mnt.c
@@ -146,6 +146,11 @@ set(register Header_t* hp, const char* f
 #include <sys/param.h>		/* expect some macro redefinitions here */
 #include <sys/mount.h>
 
+#if defined(__NetBSD__) && (__NetBSD_Version__ > 299000900)
+#define statfs                                statvfs
+#define f_flags                               f_flag
+#endif
+
 typedef struct
 {
 	Header_t	hdr;