summaryrefslogtreecommitdiff
path: root/shells/ast-ksh/patches/patch-ac
blob: 9c25b894d983a1bf620c0801da00dfd6857d970c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$NetBSD: patch-ac,v 1.1 2006/01/07 16:15:46 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__ > 299000000)
+#define statfs                                statvfs
+#define f_flags                               f_flag
+#endif
+
 typedef struct
 {
 	Header_t	hdr;