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
parent
e6e0527d72
commit
87fe8485a7
|
@ -16,6 +16,10 @@
|
||||||
# include "config.h"
|
# include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __linux__
|
||||||
|
# define _GNU_SOURCE /* Needed for O_DIRECT in fcntl */
|
||||||
|
#endif /* __linux__ */
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
Loading…
Reference in New Issue