Revert 003bdb078a15. We need to #include <gram.h> not "gram.h" and

<def_data.h> and not "def_data.h" when generating the parser in a
build dir.
This commit is contained in:
Todd C. Miller
2011-11-12 12:18:44 -05:00
parent f375ee5f01
commit 09beba8259
12 changed files with 12 additions and 12 deletions

View File

@@ -44,7 +44,7 @@
#include "sudoers.h" #include "sudoers.h"
#include "parse.h" #include "parse.h"
#include "redblack.h" #include "redblack.h"
#include "gram.h" #include <gram.h>
/* /*
* Globals * Globals

View File

@@ -46,7 +46,7 @@
#include "sudoers.h" #include "sudoers.h"
#include "parse.h" #include "parse.h"
#include "gram.h" #include <gram.h>
/* /*
* For converting between syslog numbers and strings. * For converting between syslog numbers and strings.

View File

@@ -22,7 +22,7 @@
#ifndef _SUDO_DEFAULTS_H #ifndef _SUDO_DEFAULTS_H
#define _SUDO_DEFAULTS_H #define _SUDO_DEFAULTS_H
#include "def_data.h" #include <def_data.h>
struct list_member { struct list_member {
char *value; char *value;

View File

@@ -64,7 +64,7 @@
#include "sudoers.h" /* XXX */ #include "sudoers.h" /* XXX */
#include "parse.h" #include "parse.h"
#include "toke.h" #include "toke.h"
#include "gram.h" #include <gram.h>
/* /*
* We must define SIZE_MAX for yacc's skeleton.c. * We must define SIZE_MAX for yacc's skeleton.c.

View File

@@ -76,7 +76,7 @@
#include "sudoers.h" #include "sudoers.h"
#include "parse.h" #include "parse.h"
#include "gram.h" #include <gram.h>
#ifndef HAVE_FNMATCH #ifndef HAVE_FNMATCH
# include "compat/fnmatch.h" # include "compat/fnmatch.h"

View File

@@ -45,7 +45,7 @@
#include "sudoers.h" #include "sudoers.h"
#include "parse.h" #include "parse.h"
#include "lbuf.h" #include "lbuf.h"
#include "gram.h" #include <gram.h>
/* Characters that must be quoted in sudoers */ /* Characters that must be quoted in sudoers */
#define SUDOERS_QUOTED ":\\,=#\"" #define SUDOERS_QUOTED ":\\,=#\""

View File

@@ -40,7 +40,7 @@
#include "list.h" #include "list.h"
#include "parse.h" #include "parse.h"
#include "toke.h" #include "toke.h"
#include "gram.h" #include <gram.h>
/* /*
* TODO: test realloc * TODO: test realloc

View File

@@ -65,7 +65,7 @@
#include "sudoers.h" #include "sudoers.h"
#include "interfaces.h" #include "interfaces.h"
#include "parse.h" #include "parse.h"
#include "gram.h" #include <gram.h>
#ifndef HAVE_FNMATCH #ifndef HAVE_FNMATCH
# include "compat/fnmatch.h" # include "compat/fnmatch.h"

View File

@@ -1474,7 +1474,7 @@ char *yytext;
#include "sudoers.h" #include "sudoers.h"
#include "parse.h" #include "parse.h"
#include "toke.h" #include "toke.h"
#include "gram.h" #include <gram.h>
extern YYSTYPE yylval; extern YYSTYPE yylval;
extern int parse_error; extern int parse_error;

View File

@@ -70,7 +70,7 @@
#include "sudoers.h" #include "sudoers.h"
#include "parse.h" #include "parse.h"
#include "toke.h" #include "toke.h"
#include "gram.h" #include <gram.h>
extern YYSTYPE yylval; extern YYSTYPE yylval;
extern int parse_error; extern int parse_error;

View File

@@ -52,7 +52,7 @@
#include "sudoers.h" #include "sudoers.h"
#include "parse.h" #include "parse.h"
#include "toke.h" #include "toke.h"
#include "gram.h" #include <gram.h>
static int arg_len = 0; static int arg_len = 0;
static int arg_size = 0; static int arg_size = 0;

View File

@@ -83,7 +83,7 @@
#include "redblack.h" #include "redblack.h"
#include "gettext.h" #include "gettext.h"
#include "sudoers_version.h" #include "sudoers_version.h"
#include "gram.h" #include <gram.h>
struct sudoersfile { struct sudoersfile {
struct sudoersfile *prev, *next; struct sudoersfile *prev, *next;