From b6a1a9511f0d9192df43d8e76cc9f43322cc3498 Mon Sep 17 00:00:00 2001 From: Dennis van Amerongen Date: Sun, 17 Feb 2008 23:53:53 +0000 Subject: [PATCH] * include/vlc_threads_funcs.h: add define for ETIMEDOUT on WIN32 and remove return 0 from void function vlc_spin_destroy --- include/vlc_threads_funcs.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/vlc_threads_funcs.h b/include/vlc_threads_funcs.h index 1b63750d72..dc228a0453 100644 --- a/include/vlc_threads_funcs.h +++ b/include/vlc_threads_funcs.h @@ -32,6 +32,10 @@ #ifndef _VLC_THREADFUNCS_H_ #define _VLC_THREADFUNCS_H_ +#if defined( WIN32 ) && !defined ETIMEDOUT +# define ETIMEDOUT 10060 /* This is the value in winsock.h. */ +#endif + /***************************************************************************** * Function definitions *****************************************************************************/ @@ -615,7 +619,6 @@ static inline void vlc_spin_unlock (vlc_spinlock_t *spin) static inline void vlc_spin_destroy (vlc_spinlock_t *spin) { DeleteCriticalSection(spin); - return 0; } -- 2.39.5