Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I85f823ad7be94a5860ce0104c20e5a49ce030eda
#include <errno.h>
#include <sys/types.h>
-#if (defined(__FreeBSD__) || defined(__CYGWIN__))
+#if (defined(__CYGWIN__))
typedef long long off64_t;
#endif
}
#endif
-#ifdef __FreeBSD__
-#define POSIX_FADV_DONTNEED 0
-
-static inline int posix_fadvise(int fd, off_t offset, off_t len, int advice)
-{
- return -ENOSYS;
-}
-#endif
-
#if !(defined(__linux__) || defined(__FreeBSD__) || defined(__CYGWIN__) || defined(__sun__) || defined(__APPLE__))
#error "Please add support for your OS."
#endif /* __linux__ , __FreeBSD__, __CYGWIN__, __sun__, __APPLE__ */