Only include <linux/fs.h> on GNU/Linux

This commit is contained in:
Andrius Štikonas 2017-09-07 21:34:45 +01:00
parent 2b52ec492b
commit 3866bf6fef
1 changed files with 3 additions and 1 deletions

View File

@ -31,7 +31,9 @@
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <linux/fs.h>
#ifdef __gnu_linux__
#include <linux/fs.h>
#endif
#if !defined(BLKPBSZGET)
#define BLKPBSZGET _IO(0x12,123)/* get block physical sector size */