#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 *);
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());