mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-01 21:18:52 +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>
|
#include <windows.h>
|
||||||
#endif
|
#endif
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
|
#ifdef HAVE_UNISTD_H
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
#elif defined(G_OS_WIN32)
|
||||||
|
#include <io.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <gst/base/base.h>
|
#include <gst/base/base.h>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue