From: Todd C. Miller Date: Wed, 25 May 1994 01:25:40 +0000 (+0000) Subject: prevent multiple inclusion X-Git-Tag: SUDO_1_3_1~241 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=76d8f8314f67da1665f3fe2baaf7d41138092c65;p=sudo prevent multiple inclusion --- diff --git a/insults.h b/insults.h index 2f8777f26..e40ca76cc 100644 --- a/insults.h +++ b/insults.h @@ -1,4 +1,3 @@ -#ifdef USE_INSULTS /* * CU sudo version 1.3.1 * @@ -19,6 +18,11 @@ * Please send bugs, changes, problems to sudo-bugs.cs.colorado.edu */ +#ifdef USE_INSULTS + +#ifndef _SUDO_INSULTS_H +#define _SUDO_INSULTS_H + /* * To add insult to injury, just add to the following strings and * adjust NOFINSULTS accordingly. This code taken from the original @@ -61,4 +65,6 @@ char *insults[] = { #define INSULT (insults[time(NULL) % NOFINSULTS]) +#endif /* _SUDO_INSULTS_H */ + #endif /* USE_INSULTS */ diff --git a/sudo.h b/sudo.h index 3107662a8..0f5d0c3b9 100644 --- a/sudo.h +++ b/sudo.h @@ -26,6 +26,9 @@ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ +#ifndef _SUDO_SUDO_h +#define _SUDO_SUDO_h + #include "pathnames.h" /* Configurable OPTIONS--these can be overridden from the Makefile */ @@ -335,3 +338,5 @@ extern char ** environ; #ifdef hpux # define seteuid(__EUID) (setresuid((uid_t)-1, __EUID, (uid_t)-1)) #endif /* hpux */ + +#endif /* _SUDO_SUDO_H */