aboutsummaryrefslogtreecommitdiffstats
path: root/src/serdi.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-01-01 14:15:49 +0100
committerDavid Robillard <d@drobilla.net>2021-01-01 17:48:20 +0100
commit4a54d784af0bec03fdc1f9889157a8c653969db9 (patch)
tree2c94dec6c4369a9a341cf9da4f4dbcce28cd77cf /src/serdi.c
parentd101d926946a5e8067a90d157b6553aae7bddc19 (diff)
downloadserd-4a54d784af0bec03fdc1f9889157a8c653969db9.tar.gz
serd-4a54d784af0bec03fdc1f9889157a8c653969db9.tar.bz2
serd-4a54d784af0bec03fdc1f9889157a8c653969db9.zip
Remove the need for a generated configuration header
Diffstat (limited to 'src/serdi.c')
-rw-r--r--src/serdi.c4
1 files changed, 2 insertions, 2 deletions
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 <io.h>
#endif
-#if defined(HAVE_POSIX_FADVISE) && defined(HAVE_FILENO)
+#if USE_POSIX_FADVISE && USE_FILENO
# include <fcntl.h>
#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