]> git.sesse.net Git - vlc/commitdiff
* include/vlc_threads_funcs.h: add define for ETIMEDOUT on WIN32 and remove return...
authorDennis van Amerongen <trax@videolan.org>
Sun, 17 Feb 2008 23:53:53 +0000 (23:53 +0000)
committerDennis van Amerongen <trax@videolan.org>
Sun, 17 Feb 2008 23:53:53 +0000 (23:53 +0000)
include/vlc_threads_funcs.h

index 1b63750d72f96f9db3e8a320d0952c0a31ca3a5d..dc228a0453223f835ada6daa74bee918d9c029e0 100644 (file)
 #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;
 }