From 0f0a037515dd4486e47a98deef7751d05eddba2b Mon Sep 17 00:00:00 2001 From: Blue Swirl Date: Fri, 2 Oct 2009 19:32:12 +0000 Subject: [PATCH] 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 --- vl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vl.c b/vl.c index 7bfd415..4d9db01 100644 --- a/vl.c +++ b/vl.c @@ -92,6 +92,9 @@ #include #include #include +/* 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 -- 2.7.4