summaryrefslogtreecommitdiff
path: root/parallel/sge/patches/patch-bk
blob: 3809e701f6d59303321eff76bd6ee43e59849149 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
$NetBSD: patch-bk,v 1.1 2006/10/19 11:51:27 markd Exp $

--- source/utilbin/fstype.c.orig	2005-10-06 20:18:25.000000000 +1300
+++ source/utilbin/fstype.c
@@ -64,7 +64,7 @@ int main(int argc, char *argv[]) {
    }
    else
    {  
-#if defined(LINUX) || defined(DARWIN) || defined(FREEBSD) || defined(NETBSD)
+#if defined(LINUX) || defined(DARWIN) || defined(FREEBSD) || (defined(NETBSD) && !defined(ST_RDONLY))
    struct statfs buf;
    ret = statfs(argv[1], &buf);
 #elif defined(INTERIX)