diff options
author | grant <grant> | 2003-09-11 10:57:20 +0000 |
---|---|---|
committer | grant <grant> | 2003-09-11 10:57:20 +0000 |
commit | 3dc1dfdbfc78c454b6f7a91fc4154b18849d1c6b (patch) | |
tree | d2a86801e20fb72a9fa782edbac012a53eeb9fcd /pkgtools | |
parent | 9a808184c2c246b42890a2be958413d98b846f07 (diff) | |
download | pkgsrc-3dc1dfdbfc78c454b6f7a91fc4154b18849d1c6b.tar.gz |
ensure S_ISTXT is defined if not defined in sys/stat.h.
Diffstat (limited to 'pkgtools')
-rw-r--r-- | pkgtools/libnbcompat/files/nbcompat.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/pkgtools/libnbcompat/files/nbcompat.h b/pkgtools/libnbcompat/files/nbcompat.h index a306bbd3800..5a9fba16081 100644 --- a/pkgtools/libnbcompat/files/nbcompat.h +++ b/pkgtools/libnbcompat/files/nbcompat.h @@ -1,4 +1,4 @@ -/* $NetBSD: nbcompat.h,v 1.18 2003/09/06 12:45:48 jlam Exp $ */ +/* $NetBSD: nbcompat.h,v 1.19 2003/09/11 10:57:20 grant Exp $ */ /*- * Copyright (c) 2003 The NetBSD Foundation, Inc. @@ -546,8 +546,12 @@ int gid_from_group(const char *, gid_t *); # define S_ISLNK(m) ((m & S_IFMT) == S_IFLNK) #endif +#if !defined(S_ISTXT) +# define S_ISTXT S_ISVTX +#endif + #if !defined(ALLPERMS) -# define ALLPERMS (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO) +# define ALLPERMS (S_ISUID|S_ISGID|S_ISTXT|S_IRWXU|S_IRWXG|S_IRWXO) #endif #endif /* _NBCOMPAT_H */ |