From e5b7fa7b2c73489d47475f4132e0fe6e5931b699 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Wolfgang=20St=C3=B6ggl?= Date: Wed, 20 Sep 2017 10:40:03 +0200 Subject: [PATCH] Include unistd.h only if HAVE_UNISTD_H is defined - Fixes compilation error, when building under Windows (e.g. VS2015): ..\src\rrd_create.c(18): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory --- src/rrd_create.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/rrd_create.c b/src/rrd_create.c index e6226014..9453cbcf 100644 --- a/src/rrd_create.c +++ b/src/rrd_create.c @@ -15,7 +15,9 @@ #include // stat() #include // stat() +#ifdef HAVE_UNISTD_H #include // stat() +#endif #include "rrd_strtod.h" #include "rrd_tool.h" -- 2.47.2