Move inclusion of emul/fnmatch.h to be after sudo.h for __P

This commit is contained in:
Todd C. Miller
1999-08-28 10:00:22 +00:00
parent 607e54b5e6
commit a067249e1c
3 changed files with 34 additions and 34 deletions

View File

@@ -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++) != ']';) {

View File

@@ -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 */

View File

@@ -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 */