sim-card
/
qemu
Archived
10
0
Fork 0

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:
Juan Quintela 2009-07-27 16:13:00 +02:00 committed by Anthony Liguori
parent 6114fdb0c5
commit 56ffaf2548
2 changed files with 3 additions and 3 deletions

4
acl.c
View File

@ -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
View File

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