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

vlc_fixups: add missing struct timespec

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent a3c777db
......@@ -623,6 +623,10 @@ AC_CHECK_TYPES([struct pollfd],,,
#endif
])
dnl Check for struct timespec
AC_CHECK_TYPES([struct timespec],,,
[#include <time.h>])
dnl Checks for socket stuff
VLC_SAVE_FLAGS
SOCKET_LIBS=""
......
......@@ -359,6 +359,13 @@ struct if_nameindex
# define if_freenameindex(list) (void)0
#endif
#ifndef HAVE_STRUCT_TIMESPEC
struct timespec {
time_t tv_sec; /* Seconds */
long tv_nsec; /* Nanoseconds */
};
#endif
#ifdef _WIN32
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