]> granicus.if.org Git - sudo/commitdiff
define __svr4__ for SOLARIS
authorTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 27 Jan 1994 19:07:34 +0000 (19:07 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 27 Jan 1994 19:07:34 +0000 (19:07 +0000)
sudo.h

diff --git a/sudo.h b/sudo.h
index 1dcd021e09cfa1becf5356b5a10e89234d25fab5..373cd3956e3063318138d1aed099e23c961df7ed 100644 (file)
--- 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 */