mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-29 19:50:40 +00:00
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:
parent
c27e70e83f
commit
fd823ed129
1 changed files with 5 additions and 0 deletions
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in a new issue