From 3866bf6fef2a624df6c75a3067629a154e7f3e8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrius=20=C5=A0tikonas?= Date: Thu, 7 Sep 2017 21:34:45 +0100 Subject: [PATCH] Only include on GNU/Linux --- src/core/diskdevice.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/diskdevice.cpp b/src/core/diskdevice.cpp index 8beaf83..ebed401 100644 --- a/src/core/diskdevice.cpp +++ b/src/core/diskdevice.cpp @@ -31,7 +31,9 @@ #include #include #include -#include +#ifdef __gnu_linux__ + #include +#endif #if !defined(BLKPBSZGET) #define BLKPBSZGET _IO(0x12,123)/* get block physical sector size */