Only do "extern int errno" if errno is not a macro.

This commit is contained in:
Todd C. Miller
2004-02-08 20:53:55 +00:00
parent a622cb2795
commit d80d2e29ad
2 changed files with 4 additions and 0 deletions

2
sudo.h
View File

@@ -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 */

View 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 \