Fix O_DIRECT option

The O_DIRECT option was not working as set_o_direct_flag() were moved to
utilities.c but there the  #define _GNU_SOURCE where missing. This lead
to not the Waring "cannot use O_DIRECT".
master
Enno Zickler 2018-01-25 10:51:35 +01:00
parent e6e0527d72
commit 87fe8485a7
1 changed files with 4 additions and 0 deletions

View File

@ -16,6 +16,10 @@
# include "config.h"
#endif
#ifdef __linux__
# define _GNU_SOURCE /* Needed for O_DIRECT in fcntl */
#endif /* __linux__ */
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>