From fd823ed12980e1a66808c158bd6affd1162d8359 Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Sat, 13 Feb 2016 06:42:06 +0530 Subject: [PATCH] ptpclock: Only include unistd.h if found unistd.h is not provided by the Microsoft Visual C++ compiler. It instead provides the necessary defines through io.h --- libs/gst/net/gstptpclock.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libs/gst/net/gstptpclock.c b/libs/gst/net/gstptpclock.c index d0aaa31..1414faf 100644 --- a/libs/gst/net/gstptpclock.c +++ b/libs/gst/net/gstptpclock.c @@ -64,7 +64,12 @@ #include #endif #include + +#ifdef HAVE_UNISTD_H #include +#elif defined(G_OS_WIN32) +#include +#endif #include -- 2.7.4