Changeset: 010b56b9c88f for MonetDB URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=010b56b9c88f Modified Files: gdk/gdk_posix.mx Branch: Mar2011 Log Message:
gdk_posix: disable fadvise on Linux Fixes gdk_posix.mx:747: error: 'POSIX_FADV_DONTNEED' undeclared (first use in this function) Debian has posix_fadvise, but for the constants to exist, one has to define __USE_XOPEN2K. Configure probably finds it because it ignores the missing declaration warning from the compiler. We could define __USE_XOPEN2K when including fcntl.h, but probably fadvise is like madvise, and hence like the latter, we ignore the existence of the former. diffs (11 lines): diff --git a/gdk/gdk_posix.mx b/gdk/gdk_posix.mx --- a/gdk/gdk_posix.mx +++ b/gdk/gdk_posix.mx @@ -130,6 +130,7 @@ #ifdef __linux__ /* on Linux, posix_madvise does not seem to work, fall back to classic madvise */ #undef HAVE_POSIX_MADVISE +#undef HAVE_POSIX_FADVISE #undef POSIX_MADV_NORMAL #undef POSIX_MADV_RANDOM #undef POSIX_MADV_SEQUENTIAL _______________________________________________ Checkin-list mailing list Checkin-list@monetdb.org http://mail.monetdb.org/mailman/listinfo/checkin-list