]> granicus.if.org Git - sudo/commitdiff
Include libint.h where needed.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 16 May 2011 20:37:11 +0000 (16:37 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 16 May 2011 20:37:11 +0000 (16:37 -0400)
common/aix.c
common/alloc.c
compat/strsignal.c
plugins/sudoers/auth/pam.c
plugins/sudoers/sudoers.h
src/sudo.h

index 0d4ad71bcd864aa7506bca673133cfe65ba6baa9..0ca732f5988fa40d022e4b5e9adc54e50ca1a2ec 100644 (file)
@@ -28,6 +28,9 @@
 #  include <stdlib.h>
 # endif
 #endif /* STDC_HEADERS */
+#ifdef HAVE_LIBINTL_H
+# include <libintl.h>
+#endif
 #include <usersec.h>
 #include <uinfo.h>
 
index f09ba0eb30c1d89f4addf93583c2352cd0094e1e..b5cbd6caab5456a17b8542b6a95d66ccafdd971f 100644 (file)
@@ -47,6 +47,9 @@
 #ifdef HAVE_INTTYPES_H
 # include <inttypes.h>
 #endif
+#ifdef HAVE_LIBINTL_H
+# include <libintl.h>
+#endif
 
 #include "missing.h"
 #include "alloc.h"
index 79d681710643bdc64677af0a843b08f5a46cb533..bfe05746eae5f89755a3cfe86a920adc40a75bd0 100644 (file)
@@ -20,6 +20,9 @@
 
 #include <stdio.h>
 #include <signal.h>
+#ifdef HAVE_LIBINTL_H
+# include <libintl.h>
+#endif
 
 #include "missing.h"
 
index e50edb3cb1cb191d38b15f0454795a8d4abbbae4..9f8fa7a7f4bd65b23268194186412a03bb6c5cbd 100644 (file)
@@ -50,7 +50,6 @@
 #endif
 
 #ifdef HAVE_LIBINTL_H
-# include <libintl.h>
 # if defined(__LINUX_PAM__)
 #  define PAM_TEXT_DOMAIN      "Linux-PAM"
 # elif defined(__sun__)
index 7e5d56bba4ae2e49b22974284b051c92b9b3867b..bb8a8484c51bebc314d6e25f1c81ca5637986baa 100644 (file)
 # include <membership.h>
 #endif
 
+#ifdef HAVE_LIBINTL_H
+# include <libintl.h>
+#endif
+
 /*
  * Info pertaining to the invoking user.
  */
index 46a68f153d076059673c6a0cbe7871d40ef29424..1f5cc67055c15955ff9778778a1645d7876352e1 100644 (file)
 #ifndef _SUDO_SUDO_H
 #define _SUDO_SUDO_H
 
+#ifdef HAVE_LIBINTL_H
+# include <libintl.h>
+#endif
 #include <limits.h>
-
 #include <pathnames.h>
+
 #include "missing.h"
 #include "alloc.h"
 #include "error.h"