summaryrefslogtreecommitdiffstats
path: root/player/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'player/main.c')
-rw-r--r--player/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/player/main.c b/player/main.c
index 0bf207f5b7..b1aa30f9c3 100644
--- a/player/main.c
+++ b/player/main.c
@@ -75,6 +75,10 @@
#define FULLCONFIG "(missing)\n"
#endif
+#if !(HAVE_STDATOMIC || HAVE_ATOMIC_BUILTINS || HAVE_SYNC_BUILTINS)
+pthread_mutex_t mp_atomic_mutex = PTHREAD_MUTEX_INITIALIZER;
+#endif
+
enum exit_reason {
EXIT_NONE,
EXIT_NORMAL,