[vlc-commits] compat: missing #include

Rémi Denis-Courmont git at videolan.org
Thu Dec 10 18:55:31 CET 2015


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Dec 10 19:55:18 2015 +0200| [77874cb23ea842c4a01e36fc2f4cbda07b3c814a] | committer: Rémi Denis-Courmont

compat: missing #include

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=77874cb23ea842c4a01e36fc2f4cbda07b3c814a
---

 compat/timespec_get.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/compat/timespec_get.c b/compat/timespec_get.c
index 63bd454..350e912 100644
--- a/compat/timespec_get.c
+++ b/compat/timespec_get.c
@@ -27,6 +27,9 @@
 #ifndef _POSIX_TIMERS
 #define _POSIX_TIMERS (-1)
 #endif
+#if (_POSIX_TIMERS <= 0)
+# include <sys/time.h> /* gettimeofday() */
+#endif
 
 int timespec_get(struct timespec *ts, int base)
 {



More information about the vlc-commits mailing list