From: Todd C. Miller Date: Thu, 27 Jan 1994 19:07:34 +0000 (+0000) Subject: define __svr4__ for SOLARIS X-Git-Tag: SUDO_1_3_0~31 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=82796846632247b507b08429ab573599a5535df6;p=sudo define __svr4__ for SOLARIS --- diff --git a/sudo.h b/sudo.h index 1dcd021e0..373cd3956 100644 --- a/sudo.h +++ b/sudo.h @@ -39,6 +39,8 @@ NO_ROOT_SUDO - sudo will exit if called by root + SOLARIS - define if using Solaris 2.x + MULTIMAX - define if installing on Encore Multimax Also change the LIBS macro to "LIBS=-ll" @@ -293,9 +295,15 @@ extern int errno; * This is to placate hpux */ #ifdef hpux -#define setreuid(__RUID, __EUID) (setresuid(__RUID, __EUID, (uid_t) -1)) #define getdtablesize() (sysconf(_SC_OPEN_MAX)) #ifndef USE_CWD #define USE_CWD #endif /* USE_CWD */ #endif /* hpux */ + +/* + * Sun's cpp doesn't define this but it should + */ +#if defined(SOLARIS) && !defined(__svr4__) +#define __svr4__ +#endif /* SOLARIS */