diff options
author | gildea <empty> | 1990-12-28 14:52:05 +0000 |
---|---|---|
committer | gildea <empty> | 1990-12-28 14:52:05 +0000 |
commit | 198246997004df4e480e5b94bf2a2050db050f5a (patch) | |
tree | f2506c1259cb5d30617ffefc7223f98f62f88f29 /xc/lib/Xt/Intrinsic.c | |
parent | 0ccfb494ff6ae67b9a5578d9c1782503b6b2b35f (diff) |
POSIX wants S_ISDIR() instead of S_IFDIR
Diffstat (limited to 'xc/lib/Xt/Intrinsic.c')
-rw-r--r-- | xc/lib/Xt/Intrinsic.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/xc/lib/Xt/Intrinsic.c b/xc/lib/Xt/Intrinsic.c index c1efe596c..af9d1d0bc 100644 --- a/xc/lib/Xt/Intrinsic.c +++ b/xc/lib/Xt/Intrinsic.c @@ -1,4 +1,4 @@ -/* $XConsortium: Intrinsic.c,v 1.156 90/12/21 16:27:44 rws Exp $ */ +/* $XConsortium: Intrinsic.c,v 1.157 90/12/27 14:35:20 rws Exp $ */ /*********************************************************** Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts, @@ -670,7 +670,11 @@ static Boolean TestFile(path) return (access(path, R_OK) == 0 && /* exists and is readable */ stat(path, &status) == 0 && /* get the status */ +#ifdef _POSIX_SOURCE + S_ISDIR(status.st_mode) == 0); /* not a directory */ +#else (status.st_mode & S_IFDIR) == 0); /* not a directory */ +#endif /* _POSIX_SOURCE else */ #endif /* VMS */ } |