Commit 75f4ed13 authored by Julius Plenz's avatar Julius Plenz

Revert "support for kfreebsd and old FreeBSD systems."

This reverts commit 0a214bdb. Apparently, building nocache on kfreebsd still fails, and anyway the linker warns that posix_fadvise will always fail. So so wait until kfreebsd is up-to-date with the POSIX standard. (See issue #12.)
parent 0a214bdb
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#if __POSIX_VISIBLE < 200112
#define POSIX_FADV_NORMAL 0 /* no special treatment */
#define POSIX_FADV_RANDOM 1 /* expect random page references */
#define POSIX_FADV_SEQUENTIAL 2 /* expect sequential page references */
#define POSIX_FADV_WILLNEED 3 /* will need these pages */
#define POSIX_FADV_DONTNEED 4 /* dont need these pages */
#define POSIX_FADV_NOREUSE 5 /* access data only once */
#endif
#include <error.h>
#include <stdio.h>
#include <stdlib.h>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment