From 4a54d784af0bec03fdc1f9889157a8c653969db9 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 1 Jan 2021 14:15:49 +0100 Subject: Remove the need for a generated configuration header --- src/serdi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/serdi.c') diff --git a/src/serdi.c b/src/serdi.c index 44644ff4..550da3c0 100644 --- a/src/serdi.c +++ b/src/serdi.c @@ -27,7 +27,7 @@ # include #endif -#if defined(HAVE_POSIX_FADVISE) && defined(HAVE_FILENO) +#if USE_POSIX_FADVISE && USE_FILENO # include #endif @@ -141,7 +141,7 @@ serd_fopen(const char* path, const char* mode) return NULL; } -#if defined(HAVE_POSIX_FADVISE) && defined(HAVE_FILENO) +#if USE_POSIX_FADVISE && USE_FILENO posix_fadvise(fileno(fd), 0, 0, POSIX_FADV_SEQUENTIAL | POSIX_FADV_NOREUSE); #endif -- cgit v1.2.1