]> granicus.if.org Git - sudo/commitdiff
Only do "extern int errno" if errno is not a macro.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Sun, 8 Feb 2004 20:53:55 +0000 (20:53 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Sun, 8 Feb 2004 20:53:55 +0000 (20:53 +0000)
sudo.h
sudo_noexec.c

diff --git a/sudo.h b/sudo.h
index d51708ec98238dc44931aaa6a9d001b150215df4..c755f63d225994372334cec5caa90b111043cf47 100644 (file)
--- a/sudo.h
+++ b/sudo.h
@@ -248,6 +248,8 @@ extern uid_t timestamp_uid;
 
 extern void (*set_perms) __P((int));
 #endif
+#ifndef errno
 extern int errno;
+#endif
 
 #endif /* _SUDO_SUDO_H */
index 2a5080f0bec050f5ba146659930cc944518e681d..ccfe01c9ec90cbb28bec090577c4d10026045117 100644 (file)
@@ -48,7 +48,9 @@ static const char rcsid[] = "$Sudo$";
  * few programs actually do that.
  */
 
+#ifndef errno
 extern int errno;
+#endif
 
 #define DUMMY(fn, args, atypes)        \
 int                            \