From f91d10c831a08efc4412a9b09c9512663166f564 Mon Sep 17 00:00:00 2001 From: jfreegman Date: Mon, 13 Dec 2021 10:56:53 -0500 Subject: [PATCH] Add missing ifdef --- src/toxic.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/toxic.c b/src/toxic.c index c841444..6bb0f6c 100644 --- a/src/toxic.c +++ b/src/toxic.c @@ -99,9 +99,12 @@ ToxWindow *prompt = NULL; struct Winthread Winthread; static struct cqueue_thread cqueue_thread; -static struct av_thread av_thread; struct arg_opts arg_opts; +#ifdef AUDIO +static struct av_thread av_thread; +#endif + // This struct is not thread safe. It should only ever be written to from the main thread // before any other thread that uses it is initialized. struct user_settings *user_settings = NULL;