Commit 56ffaf254851cc80e6354420e883e66d810dffb2

Authored by Juan Quintela
Committed by Anthony Liguori
1 parent 6114fdb0

rename HAVE_FNMATCH_H to CONFIG_FNMATCH

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Showing 2 changed files with 3 additions and 3 deletions
... ... @@ -27,7 +27,7 @@
27 27 #include "sysemu.h"
28 28 #include "acl.h"
29 29  
30   -#ifdef HAVE_FNMATCH_H
  30 +#ifdef CONFIG_FNMATCH
31 31 #include <fnmatch.h>
32 32 #endif
33 33  
... ... @@ -79,7 +79,7 @@ int qemu_acl_party_is_allowed(qemu_acl *acl,
79 79 qemu_acl_entry *entry;
80 80  
81 81 TAILQ_FOREACH(entry, &acl->entries, next) {
82   -#ifdef HAVE_FNMATCH_H
  82 +#ifdef CONFIG_FNMATCH
83 83 if (fnmatch(entry->match, party, 0) == 0)
84 84 return entry->deny ? 0 : 1;
85 85 #else
... ...
configure
... ... @@ -1637,7 +1637,7 @@ if test &quot;$vnc_sasl&quot; = &quot;yes&quot; ; then
1637 1637 echo "#define CONFIG_VNC_SASL 1" >> $config_host_h
1638 1638 fi
1639 1639 if test "$fnmatch" = "yes" ; then
1640   - echo "#define HAVE_FNMATCH_H 1" >> $config_host_h
  1640 + echo "#define CONFIG_FNMATCH 1" >> $config_host_h
1641 1641 fi
1642 1642 qemu_version=`head $source_path/VERSION`
1643 1643 echo "VERSION=$qemu_version" >>$config_host_mak
... ...