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
This commit is contained in:
Nirbheek Chauhan 2016-02-13 06:42:06 +05:30 committed by Tim-Philipp Müller
parent c27e70e83f
commit fd823ed129

View file

@ -64,7 +64,12 @@
#include <windows.h>
#endif
#include <sys/types.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#elif defined(G_OS_WIN32)
#include <io.h>
#endif
#include <gst/base/base.h>