extern char *psz_vlcpath;
+#ifdef LIBVLC_USE_PTHREAD
+# include <semaphore.h> /* TODO: get rid of vlc_thread_ready and this */
+#endif
+
/**
* Private LibVLC data for each object.
*/
/* Thread properties, if any */
vlc_thread_t thread_id;
bool b_thread;
+#ifdef LIBVLC_USE_PTHREAD
+ sem_t thread_ready;
+#elif defined (WIN32)
+ HANDLE thread_ready;
+#endif
/* Objects thread synchronization */
vlc_mutex_t lock;