diff options
author | grant <grant> | 2003-09-11 11:27:38 +0000 |
---|---|---|
committer | grant <grant> | 2003-09-11 11:27:38 +0000 |
commit | 0473348bbcc70990bcecf9856015d8db55a00ee2 (patch) | |
tree | 829ec949b49718cfdcd88f49607db60fa980096d /pkgtools | |
parent | 3b8a81938b9f3914ef7a74f17f495d9b4f9d25dd (diff) | |
download | pkgsrc-0473348bbcc70990bcecf9856015d8db55a00ee2.tar.gz |
ensure GID_MAX and UID_MAX are defined, fixing build of mtree and pax
after latest rototill.
Diffstat (limited to 'pkgtools')
-rw-r--r-- | pkgtools/libnbcompat/files/nbcompat.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/pkgtools/libnbcompat/files/nbcompat.h b/pkgtools/libnbcompat/files/nbcompat.h index 5a9fba16081..460b548dbd8 100644 --- a/pkgtools/libnbcompat/files/nbcompat.h +++ b/pkgtools/libnbcompat/files/nbcompat.h @@ -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 @@ int gid_from_group(const char *, gid_t *); } 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 @@ int gid_from_group(const char *, gid_t *); # 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 */ |