qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [COMMIT 8d32cf0] Fix warning about undefined madvise() on


From: Anthony Liguori
Subject: [Qemu-commits] [COMMIT 8d32cf0] Fix warning about undefined madvise() on OpenSolaris
Date: Fri, 02 Oct 2009 19:56:06 -0000

From: Blue Swirl <address@hidden>

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 <address@hidden>

diff --git a/vl.c b/vl.c
index 7bfd415..4d9db01 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]