1
mirror of https://code.videolan.org/videolan/vlc synced 2024-10-03 01:31:53 +02:00

vlc_fixups: add missing struct timespec

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
This commit is contained in:
Steve Lhomme 2016-02-08 16:48:19 +01:00 committed by Jean-Baptiste Kempf
parent a3c777dbad
commit 76ca1aaac4
2 changed files with 11 additions and 0 deletions

View File

@ -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=""

View File

@ -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
{