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
4
acl.c
4
acl.c
@ -27,7 +27,7 @@
|
|||||||
#include "sysemu.h"
|
#include "sysemu.h"
|
||||||
#include "acl.h"
|
#include "acl.h"
|
||||||
|
|
||||||
#ifdef HAVE_FNMATCH_H
|
#ifdef CONFIG_FNMATCH
|
||||||
#include <fnmatch.h>
|
#include <fnmatch.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -79,7 +79,7 @@ int qemu_acl_party_is_allowed(qemu_acl *acl,
|
|||||||
qemu_acl_entry *entry;
|
qemu_acl_entry *entry;
|
||||||
|
|
||||||
TAILQ_FOREACH(entry, &acl->entries, next) {
|
TAILQ_FOREACH(entry, &acl->entries, next) {
|
||||||
#ifdef HAVE_FNMATCH_H
|
#ifdef CONFIG_FNMATCH
|
||||||
if (fnmatch(entry->match, party, 0) == 0)
|
if (fnmatch(entry->match, party, 0) == 0)
|
||||||
return entry->deny ? 0 : 1;
|
return entry->deny ? 0 : 1;
|
||||||
#else
|
#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
|
echo "#define CONFIG_VNC_SASL 1" >> $config_host_h
|
||||||
fi
|
fi
|
||||||
if test "$fnmatch" = "yes" ; then
|
if test "$fnmatch" = "yes" ; then
|
||||||
echo "#define HAVE_FNMATCH_H 1" >> $config_host_h
|
echo "#define CONFIG_FNMATCH 1" >> $config_host_h
|
||||||
fi
|
fi
|
||||||
qemu_version=`head $source_path/VERSION`
|
qemu_version=`head $source_path/VERSION`
|
||||||
echo "VERSION=$qemu_version" >>$config_host_mak
|
echo "VERSION=$qemu_version" >>$config_host_mak
|
||||||
|
Loading…
Reference in New Issue
Block a user