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 GID_MAX and UID_MAX ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/44920799b573
branches: trunk
changeset: 461130:44920799b573
user: grant <grant%pkgsrc.org@localhost>
date: Thu Sep 11 11:27:38 2003 +0000
description:
ensure GID_MAX and UID_MAX are defined, fixing build of mtree and pax
after latest rototill.
diffstat:
pkgtools/libnbcompat/files/nbcompat.h | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diffs (31 lines):
diff -r 9fcec0f4e1f1 -r 44920799b573 pkgtools/libnbcompat/files/nbcompat.h
--- a/pkgtools/libnbcompat/files/nbcompat.h Thu Sep 11 11:26:09 2003 +0000
+++ b/pkgtools/libnbcompat/files/nbcompat.h Thu Sep 11 11:27:38 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nbcompat.h,v 1.19 2003/09/11 10:57:20 grant Exp $ */
+/* $NetBSD: nbcompat.h,v 1.20 2003/09/11 11:27:38 grant Exp $ */
/*-
* Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -542,6 +542,7 @@
} while (0)
#endif
+/* not all systems define all of these in sys/stat.h */
#if !defined(S_ISLNK)
# define S_ISLNK(m) ((m & S_IFMT) == S_IFLNK)
#endif
@@ -554,4 +555,13 @@
# define ALLPERMS (S_ISUID|S_ISGID|S_ISTXT|S_IRWXU|S_IRWXG|S_IRWXO)
#endif
+/* not all systems define all of these in limits.h */
+#ifndef GID_MAX
+# define GID_MAX 2147483647U /* max value for a gid_t (2^31-2) */
+#endif
+
+#ifndef UID_MAX
+# define UID_MAX 2147483647U /* max value for a uid_t (2^31-2) */
+#endif
+
#endif /* _NBCOMPAT_H */
Home |
Main Index |
Thread Index |
Old Index