pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/pkgtools/libnbcompat/files ensure S_ISTXT is defined i...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/86eb3f8683ac
branches:  trunk
changeset: 461125:86eb3f8683ac
user:      grant <grant%pkgsrc.org@localhost>
date:      Thu Sep 11 10:57:20 2003 +0000

description:
ensure S_ISTXT is defined if not defined in sys/stat.h.

diffstat:

 pkgtools/libnbcompat/files/nbcompat.h |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (23 lines):

diff -r e1fadaa2d57a -r 86eb3f8683ac pkgtools/libnbcompat/files/nbcompat.h
--- a/pkgtools/libnbcompat/files/nbcompat.h     Thu Sep 11 10:52:49 2003 +0000
+++ b/pkgtools/libnbcompat/files/nbcompat.h     Thu Sep 11 10:57:20 2003 +0000
@@ -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 @@
 # 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 */



Home | Main Index | Thread Index | Old Index