Commit 76ca1aaa authored by Steve Lhomme's avatar Steve Lhomme Committed by Jean-Baptiste Kempf

vlc_fixups: add missing struct timespec

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent a3c777db
...@@ -623,6 +623,10 @@ AC_CHECK_TYPES([struct pollfd],,, ...@@ -623,6 +623,10 @@ AC_CHECK_TYPES([struct pollfd],,,
#endif #endif
]) ])
dnl Check for struct timespec
AC_CHECK_TYPES([struct timespec],,,
[#include <time.h>])
dnl Checks for socket stuff dnl Checks for socket stuff
VLC_SAVE_FLAGS VLC_SAVE_FLAGS
SOCKET_LIBS="" SOCKET_LIBS=""
......
...@@ -359,6 +359,13 @@ struct if_nameindex ...@@ -359,6 +359,13 @@ struct if_nameindex
# define if_freenameindex(list) (void)0 # define if_freenameindex(list) (void)0
#endif #endif
#ifndef HAVE_STRUCT_TIMESPEC
struct timespec {
time_t tv_sec; /* Seconds */
long tv_nsec; /* Nanoseconds */
};
#endif
#ifdef _WIN32 #ifdef _WIN32
struct iovec struct iovec
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment