Commit 56ffaf254851cc80e6354420e883e66d810dffb2
Committed by
Anthony Liguori
1 parent
6114fdb0
rename HAVE_FNMATCH_H to CONFIG_FNMATCH
Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Showing
2 changed files
with
3 additions
and
3 deletions
acl.c
@@ -27,7 +27,7 @@ | @@ -27,7 +27,7 @@ | ||
27 | #include "sysemu.h" | 27 | #include "sysemu.h" |
28 | #include "acl.h" | 28 | #include "acl.h" |
29 | 29 | ||
30 | -#ifdef HAVE_FNMATCH_H | 30 | +#ifdef CONFIG_FNMATCH |
31 | #include <fnmatch.h> | 31 | #include <fnmatch.h> |
32 | #endif | 32 | #endif |
33 | 33 | ||
@@ -79,7 +79,7 @@ int qemu_acl_party_is_allowed(qemu_acl *acl, | @@ -79,7 +79,7 @@ int qemu_acl_party_is_allowed(qemu_acl *acl, | ||
79 | qemu_acl_entry *entry; | 79 | qemu_acl_entry *entry; |
80 | 80 | ||
81 | TAILQ_FOREACH(entry, &acl->entries, next) { | 81 | TAILQ_FOREACH(entry, &acl->entries, next) { |
82 | -#ifdef HAVE_FNMATCH_H | 82 | +#ifdef CONFIG_FNMATCH |
83 | if (fnmatch(entry->match, party, 0) == 0) | 83 | if (fnmatch(entry->match, party, 0) == 0) |
84 | return entry->deny ? 0 : 1; | 84 | return entry->deny ? 0 : 1; |
85 | #else | 85 | #else |
configure
@@ -1637,7 +1637,7 @@ if test "$vnc_sasl" = "yes" ; then | @@ -1637,7 +1637,7 @@ if test "$vnc_sasl" = "yes" ; then | ||
1637 | echo "#define CONFIG_VNC_SASL 1" >> $config_host_h | 1637 | echo "#define CONFIG_VNC_SASL 1" >> $config_host_h |
1638 | fi | 1638 | fi |
1639 | if test "$fnmatch" = "yes" ; then | 1639 | if test "$fnmatch" = "yes" ; then |
1640 | - echo "#define HAVE_FNMATCH_H 1" >> $config_host_h | 1640 | + echo "#define CONFIG_FNMATCH 1" >> $config_host_h |
1641 | fi | 1641 | fi |
1642 | qemu_version=`head $source_path/VERSION` | 1642 | qemu_version=`head $source_path/VERSION` |
1643 | echo "VERSION=$qemu_version" >>$config_host_mak | 1643 | echo "VERSION=$qemu_version" >>$config_host_mak |