mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-11-05 20:35:44 +00:00
rename HAVE_FNMATCH_H to CONFIG_FNMATCH
Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
6114fdb0c5
commit
56ffaf2548
2 changed files with 3 additions and 3 deletions
4
acl.c
4
acl.c
|
@ -27,7 +27,7 @@
|
|||
#include "sysemu.h"
|
||||
#include "acl.h"
|
||||
|
||||
#ifdef HAVE_FNMATCH_H
|
||||
#ifdef CONFIG_FNMATCH
|
||||
#include <fnmatch.h>
|
||||
#endif
|
||||
|
||||
|
@ -79,7 +79,7 @@ int qemu_acl_party_is_allowed(qemu_acl *acl,
|
|||
qemu_acl_entry *entry;
|
||||
|
||||
TAILQ_FOREACH(entry, &acl->entries, next) {
|
||||
#ifdef HAVE_FNMATCH_H
|
||||
#ifdef CONFIG_FNMATCH
|
||||
if (fnmatch(entry->match, party, 0) == 0)
|
||||
return entry->deny ? 0 : 1;
|
||||
#else
|
||||
|
|
2
configure
vendored
2
configure
vendored
|
@ -1637,7 +1637,7 @@ if test "$vnc_sasl" = "yes" ; then
|
|||
echo "#define CONFIG_VNC_SASL 1" >> $config_host_h
|
||||
fi
|
||||
if test "$fnmatch" = "yes" ; then
|
||||
echo "#define HAVE_FNMATCH_H 1" >> $config_host_h
|
||||
echo "#define CONFIG_FNMATCH 1" >> $config_host_h
|
||||
fi
|
||||
qemu_version=`head $source_path/VERSION`
|
||||
echo "VERSION=$qemu_version" >>$config_host_mak
|
||||
|
|
Loading…
Reference in a new issue