From: Todd C. Miller Date: Sun, 8 Feb 2004 20:53:55 +0000 (+0000) Subject: Only do "extern int errno" if errno is not a macro. X-Git-Tag: SUDO_1_6_8~185 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d80d2e29ad624068c6e3d2d6fe18e236ea201e45;p=sudo Only do "extern int errno" if errno is not a macro. --- diff --git a/sudo.h b/sudo.h index d51708ec9..c755f63d2 100644 --- 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 */ diff --git a/sudo_noexec.c b/sudo_noexec.c index 2a5080f0b..ccfe01c9e 100644 --- a/sudo_noexec.c +++ b/sudo_noexec.c @@ -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 \