From 7ff2e8989063fdfff03f9dfd22fdfc62226a2907 Mon Sep 17 00:00:00 2001 From: mlaier Date: Mon, 15 Mar 2004 13:43:44 +0000 Subject: [PATCH] Move GID/UID_MAX under __BSD_VISIBLE protection. Requested by: bde Approved by: bms(mentor) --- sys/sys/limits.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/sys/limits.h b/sys/sys/limits.h index 8b4be2e9f33c..e7a1ed09c168 100644 --- a/sys/sys/limits.h +++ b/sys/sys/limits.h @@ -66,9 +66,6 @@ #define LONG_MAX __LONG_MAX /* max for a long */ #define LONG_MIN __LONG_MIN /* min for a long */ -#define UID_MAX UINT_MAX /* max value for a uid_t */ -#define GID_MAX UINT_MAX /* max value for a gid_t */ - #ifdef __LONG_LONG_SUPPORTED #define ULLONG_MAX __ULLONG_MAX /* max for an unsigned long long */ #define LLONG_MAX __LLONG_MAX /* max for a long long */ @@ -87,6 +84,9 @@ #endif #if __BSD_VISIBLE +#define GID_MAX UINT_MAX /* max value for a gid_t */ +#define UID_MAX UINT_MAX /* max value for a uid_t */ + #define UQUAD_MAX (__UQUAD_MAX) /* max value for a uquad_t */ #define QUAD_MAX (__QUAD_MAX) /* max value for a quad_t */ #define QUAD_MIN (__QUAD_MIN) /* min value for a quad_t */