We must include gettext.h before missing.h as it includes system

headers.  Also add missing DEFAULT_TEXT_DOMAIN defines in sudoers
audit code that does not include sudoers.h.
This commit is contained in:
Todd C. Miller
2014-02-11 09:40:59 -07:00
parent 02d86aafe8
commit 12a1b672c0
22 changed files with 51 additions and 42 deletions

View File

@@ -29,6 +29,9 @@
# include "compat/stdbool.h"
#endif /* HAVE_STDBOOL_H */
#define DEFAULT_TEXT_DOMAIN "sudoers"
#include "gettext.h" /* must be included before missing.h */
#include <pathnames.h>
#include "missing.h"
#include "fatal.h"
@@ -42,9 +45,6 @@
#include "sudo_debug.h"
#include "sudo_util.h"
#define DEFAULT_TEXT_DOMAIN "sudoers"
#include "gettext.h"
/*
* Password db and supplementary group IDs with associated group names.
*/