-ssize_t splice(int fd_in, loff_t *off_in, int fd_out,
- loff_t *off_out, size_t len, unsigned int flags)
+static inline ssize_t splice(int fd_in, loff_t *off_in, int fd_out, loff_t *off_out,
+ size_t len, unsigned int flags)
+{
+ return -ENOSYS;
+}
+#endif
+
+#ifdef __FreeBSD__
+#define POSIX_FADV_DONTNEED 0
+
+static inline int posix_fadvise(int fd, off_t offset, off_t len, int advice)