summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2009-07-27 16:13:00 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-07-27 14:09:20 -0500
commit56ffaf254851cc80e6354420e883e66d810dffb2 (patch)
treeef503785ed16d8171c40cfcd8e8698f6ac0f2add
parent6114fdb0c582bbf139bc6b4545552cc6223d3c8b (diff)
downloadqemu-56ffaf254851cc80e6354420e883e66d810dffb2.tar.gz
rename HAVE_FNMATCH_H to CONFIG_FNMATCH
Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-rw-r--r--acl.c4
-rwxr-xr-xconfigure2
2 files changed, 3 insertions, 3 deletions
diff --git a/acl.c b/acl.c
index f69db25c8b..1a11a61d19 100644
--- a/acl.c
+++ b/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
diff --git a/configure b/configure
index 99a533768f..7a46c966ac 100755
--- a/configure
+++ b/configure
@@ -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