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:
@@ -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
|
||||||
|
@@ -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.
|
||||||
|
@@ -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;
|
||||||
|
@@ -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.
|
||||||
|
@@ -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"
|
||||||
|
@@ -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 ":\\,=#\""
|
||||||
|
@@ -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
|
||||||
|
@@ -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"
|
||||||
|
@@ -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;
|
||||||
|
@@ -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;
|
||||||
|
@@ -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;
|
||||||
|
@@ -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;
|
||||||
|
Reference in New Issue
Block a user