Revision 56ffaf25
b/acl.c | ||
---|---|---|
27 | 27 |
#include "sysemu.h" |
28 | 28 |
#include "acl.h" |
29 | 29 |
|
30 |
#ifdef HAVE_FNMATCH_H
|
|
30 |
#ifdef CONFIG_FNMATCH
|
|
31 | 31 |
#include <fnmatch.h> |
32 | 32 |
#endif |
33 | 33 |
|
... | ... | |
79 | 79 |
qemu_acl_entry *entry; |
80 | 80 |
|
81 | 81 |
TAILQ_FOREACH(entry, &acl->entries, next) { |
82 |
#ifdef HAVE_FNMATCH_H
|
|
82 |
#ifdef CONFIG_FNMATCH
|
|
83 | 83 |
if (fnmatch(entry->match, party, 0) == 0) |
84 | 84 |
return entry->deny ? 0 : 1; |
85 | 85 |
#else |
b/configure | ||
---|---|---|
1637 | 1637 |
echo "#define CONFIG_VNC_SASL 1" >> $config_host_h |
1638 | 1638 |
fi |
1639 | 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 | 1641 |
fi |
1642 | 1642 |
qemu_version=`head $source_path/VERSION` |
1643 | 1643 |
echo "VERSION=$qemu_version" >>$config_host_mak |
Also available in: Unified diff