Merge pull request #31 from ezickler/O_DIRECTfix

Fix O_DIRECT option
master
Glenn K. Lockwood 2018-01-25 09:32:00 -08:00 committed by GitHub
commit 9a200097a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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>