]> granicus.if.org Git - sudo/commitdiff
prevent multiple inclusion
authorTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 25 May 1994 01:25:40 +0000 (01:25 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 25 May 1994 01:25:40 +0000 (01:25 +0000)
insults.h
sudo.h

index 2f8777f268a324e039047d8b10e2da067bc94da1..e40ca76cce46a60a97648169badd8d1c01a28bbd 100644 (file)
--- a/insults.h
+++ b/insults.h
@@ -1,4 +1,3 @@
-#ifdef USE_INSULTS
 /*
  *  CU sudo version 1.3.1
  *
  *  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 3107662a885d405af3e2a7956c122061971cd239..0f5d0c3b902dd65a259cee7fb6ec12cfa7814025 100644 (file)
--- 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 */