aboutsummaryrefslogtreecommitdiff
path: root/vl.c
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2009-10-02 19:32:12 +0000
committerBlue Swirl <blauwirbel@gmail.com>2009-10-02 19:32:12 +0000
commit8d32cf0eb4e677d739cf0f9c45a9ea926f231b67 (patch)
treedc40d59780ae02206b2564826a89a1926953d044 /vl.c
parentlinux-user: fix up oversealous nitpicking (diff)
downloadqemu-kvm-8d32cf0eb4e677d739cf0f9c45a9ea926f231b67.tar.gz
qemu-kvm-8d32cf0eb4e677d739cf0f9c45a9ea926f231b67.tar.bz2
qemu-kvm-8d32cf0eb4e677d739cf0f9c45a9ea926f231b67.zip
Fix warning about undefined madvise() on OpenSolaris
OpenSolaris headers can't export madvise() with a sane set of #defines. For background, see MySQL bug #7156 (http://bugs.mysql.com/bug.php?id=7156) for discussion about Solaris header problems. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/vl.c b/vl.c
index 7bfd41593..4d9db0145 100644
--- a/vl.c
+++ b/vl.c
@@ -92,6 +92,9 @@
#include <net/if.h>
#include <syslog.h>
#include <stropts.h>
+/* See MySQL bug #7156 (http://bugs.mysql.com/bug.php?id=7156) for
+ discussion about Solaris header problems */
+extern int madvise(caddr_t, size_t, int);
#endif
#endif
#endif