Fix warning about undefined madvise() on OpenSolaris
authorBlue Swirl <blauwirbel@gmail.com>
Fri, 2 Oct 2009 19:32:12 +0000 (19:32 +0000)
committerBlue Swirl <blauwirbel@gmail.com>
Fri, 2 Oct 2009 19:32:12 +0000 (19:32 +0000)
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>
vl.c

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