Move inclusion of emul/fnmatch.h to be after sudo.h for __P
This commit is contained in:
@@ -158,7 +158,7 @@ rangematch(pattern, test, flags)
|
|||||||
* consistency with the regular expression syntax.
|
* consistency with the regular expression syntax.
|
||||||
* J.T. Conklin (conklin@ngai.kaleida.com)
|
* J.T. Conklin (conklin@ngai.kaleida.com)
|
||||||
*/
|
*/
|
||||||
if (negate = (*pattern == '!' || *pattern == '^'))
|
if ((negate = (*pattern == '!' || *pattern == '^')))
|
||||||
++pattern;
|
++pattern;
|
||||||
|
|
||||||
for (ok = 0; (c = *pattern++) != ']';) {
|
for (ok = 0; (c = *pattern++) != ']';) {
|
||||||
|
8
parse.c
8
parse.c
@@ -52,10 +52,6 @@
|
|||||||
#endif /* HAVE_STRINGS_H */
|
#endif /* HAVE_STRINGS_H */
|
||||||
#if defined(HAVE_FNMATCH) && defined(HAVE_FNMATCH_H)
|
#if defined(HAVE_FNMATCH) && defined(HAVE_FNMATCH_H)
|
||||||
# include <fnmatch.h>
|
# include <fnmatch.h>
|
||||||
#else
|
|
||||||
# ifndef HAVE_FNMATCH
|
|
||||||
# include "emul/fnmatch.h"
|
|
||||||
# endif /* HAVE_FNMATCH */
|
|
||||||
#endif /* HAVE_FNMATCH_H */
|
#endif /* HAVE_FNMATCH_H */
|
||||||
#ifdef HAVE_NETGROUP_H
|
#ifdef HAVE_NETGROUP_H
|
||||||
# include <netgroup.h>
|
# include <netgroup.h>
|
||||||
@@ -90,6 +86,10 @@
|
|||||||
#include "parse.h"
|
#include "parse.h"
|
||||||
#include "interfaces.h"
|
#include "interfaces.h"
|
||||||
|
|
||||||
|
#ifndef HAVE_FNMATCH
|
||||||
|
# include "emul/fnmatch.h"
|
||||||
|
#endif /* HAVE_FNMATCH */
|
||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
static const char rcsid[] = "$Sudo$";
|
static const char rcsid[] = "$Sudo$";
|
||||||
#endif /* lint */
|
#endif /* lint */
|
||||||
|
@@ -52,10 +52,6 @@
|
|||||||
#endif /* HAVE_STRINGS_H */
|
#endif /* HAVE_STRINGS_H */
|
||||||
#if defined(HAVE_FNMATCH) && defined(HAVE_FNMATCH_H)
|
#if defined(HAVE_FNMATCH) && defined(HAVE_FNMATCH_H)
|
||||||
# include <fnmatch.h>
|
# include <fnmatch.h>
|
||||||
#else
|
|
||||||
# ifndef HAVE_FNMATCH
|
|
||||||
# include "emul/fnmatch.h"
|
|
||||||
# endif /* HAVE_FNMATCH */
|
|
||||||
#endif /* HAVE_FNMATCH_H */
|
#endif /* HAVE_FNMATCH_H */
|
||||||
#ifdef HAVE_NETGROUP_H
|
#ifdef HAVE_NETGROUP_H
|
||||||
# include <netgroup.h>
|
# include <netgroup.h>
|
||||||
@@ -76,6 +72,10 @@
|
|||||||
#include "parse.h"
|
#include "parse.h"
|
||||||
#include "interfaces.h"
|
#include "interfaces.h"
|
||||||
|
|
||||||
|
#ifndef HAVE_FNMATCH
|
||||||
|
# include "emul/fnmatch.h"
|
||||||
|
#endif /* HAVE_FNMATCH */
|
||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
static const char rcsid[] = "$Sudo$";
|
static const char rcsid[] = "$Sudo$";
|
||||||
#endif /* lint */
|
#endif /* lint */
|
||||||
|
Reference in New Issue
Block a user