projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c27e70e
)
ptpclock: Only include unistd.h if found
author
Nirbheek Chauhan
<nirbheek@centricular.com>
Sat, 13 Feb 2016 01:12:06 +0000
(06:42 +0530)
committer
Tim-Philipp Müller
<tim@centricular.com>
Sat, 20 Feb 2016 10:07:31 +0000
(10:07 +0000)
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
patch
|
blob
|
history
diff --git
a/libs/gst/net/gstptpclock.c
b/libs/gst/net/gstptpclock.c
index
d0aaa31
..
1414faf
100644
(file)
--- a/
libs/gst/net/gstptpclock.c
+++ b/
libs/gst/net/gstptpclock.c
@@
-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>