summaryrefslogtreecommitdiff
path: root/cont.c
diff options
context:
space:
mode:
Diffstat (limited to 'cont.c')
-rw-r--r--cont.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/cont.c b/cont.c
index 2af7971a9a..290be43012 100644
--- a/cont.c
+++ b/cont.c
@@ -18,8 +18,7 @@
// On Solaris, madvise() is NOT declared for SUS (XPG4v2) or later,
// but MADV_* macros are defined when __EXTENSIONS__ is defined.
-#if defined(__sun) && defined(HAVE_CADDR_T) && \
- (defined(MADV_FREE) || defined(MADV_DONTNEED))
+#ifdef NEED_MADVICE_PROTOTYPE_USING_CADDR_T
#include <sys/types.h>
extern int madvise(caddr_t, size_t, int);
#endif