]> git.sesse.net Git - vlc/blobdiff - bin/vlc.c
macosx: prevent color flashes when collapsing items in the sidebar (fixes #5600)
[vlc] / bin / vlc.c
index 3451360d31cabe4e7a3c052f521ed6cd7133fefc..4d20f89069d686e20a4f5cb5451cf9b9d7073a42 100644 (file)
--- a/bin/vlc.c
+++ b/bin/vlc.c
 #include <stdbool.h>
 #include <locale.h>
 #include <signal.h>
-#include <pthread.h>
+#ifdef HAVE_PTHREAD_H
+# include <pthread.h>
+#endif
 #include <unistd.h>
 
 #ifdef __APPLE__
 #include <string.h>
 #endif
 
+#ifdef __OS2__
+# define pthread_t      int
+# define pthread_self() _gettid()
+#endif
+
 
 /* Explicit HACK */
 extern void LocaleFree (const char *);
@@ -127,8 +134,8 @@ int main( int i_argc, const char *ppsz_argv[] )
     setlocale (LC_ALL, "");
 
     if (isatty (STDERR_FILENO))
-        /* This message clutters error logs. It is print it only on a TTY.
-         * Forunately, LibVLC prints version infos with -vv anyhow. */
+        /* This message clutters error logs. It is printed only on a TTY.
+         * Fortunately, LibVLC prints version info with -vv anyway. */
         fprintf (stderr, "VLC media player %s (revision %s)\n",
                  libvlc_get_version(), libvlc_get_changeset());