Be sure to include sudo_queue.h where needed instead of relying on other headers.

This commit is contained in:
Todd C. Miller
2019-02-19 08:31:08 -07:00
parent 683c65b98b
commit c0a12d9d95
5 changed files with 5 additions and 2 deletions

View File

@@ -42,7 +42,6 @@
#include "sudoers.h" #include "sudoers.h"
#include "sudoers_version.h" #include "sudoers_version.h"
#include "sudo_conf.h"
#include "sudo_lbuf.h" #include "sudo_lbuf.h"
#include "redblack.h" #include "redblack.h"
#include "cvtsudoers.h" #include "cvtsudoers.h"

View File

@@ -24,6 +24,7 @@
#include <time.h> #include <time.h>
#include <def_data.h> #include <def_data.h>
#include "sudo_queue.h"
struct list_member { struct list_member {
SLIST_ENTRY(list_member) entries; SLIST_ENTRY(list_member) entries;

View File

@@ -18,6 +18,8 @@
#ifndef SUDOERS_PARSE_H #ifndef SUDOERS_PARSE_H
#define SUDOERS_PARSE_H #define SUDOERS_PARSE_H
#include "sudo_queue.h"
/* Characters that must be quoted in sudoers. */ /* Characters that must be quoted in sudoers. */
#define SUDOERS_QUOTED ":\\,=#\"" #define SUDOERS_QUOTED ":\\,=#\""

View File

@@ -32,8 +32,8 @@
#endif /* HAVE_STRINGS_H */ #endif /* HAVE_STRINGS_H */
#include "sudo_compat.h" #include "sudo_compat.h"
#include "sudo_util.h"
#include "sudo_queue.h" #include "sudo_queue.h"
#include "sudo_util.h"
#include "sudoers_debug.h" #include "sudoers_debug.h"
#include "strlist.h" #include "strlist.h"

View File

@@ -36,6 +36,7 @@
#include "sudo_fatal.h" #include "sudo_fatal.h"
#include "sudo_conf.h" #include "sudo_conf.h"
#include "sudo_debug.h" #include "sudo_debug.h"
#include "sudo_queue.h"
#include "sudo_util.h" #include "sudo_util.h"
#ifdef HAVE_PRIV_SET #ifdef HAVE_PRIV_SET