]> git.proxmox.com Git - qemu.git/commitdiff
rename HAVE_FNMATCH_H to CONFIG_FNMATCH
authorJuan Quintela <quintela@redhat.com>
Mon, 27 Jul 2009 14:13:00 +0000 (16:13 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 27 Jul 2009 19:09:20 +0000 (14:09 -0500)
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
acl.c
configure

diff --git a/acl.c b/acl.c
index f69db25c8bf964810a3479116a59bd0543d35b5f..1a11a61d1936ce992fb2574391f08722696250b0 100644 (file)
--- 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
index 99a533768f75ac886740be089f02fcb5dd5dee21..7a46c966ace9890b2a817934cce444b93ee9e1dc 100755 (executable)
--- 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