From 8024757e57d4fcb8afba9aa43046b72fc5184ac8 Mon Sep 17 00:00:00 2001 From: jin-eld Date: Sun, 16 Mar 2014 20:28:46 +0100 Subject: [PATCH] Fix toxic build when toxav is not available --- configure.ac | 2 ++ src/friendlist.c | 3 +++ 2 files changed, 5 insertions(+) diff --git a/configure.ac b/configure.ac index ca30147..df0d35e 100644 --- a/configure.ac +++ b/configure.ac @@ -440,10 +440,12 @@ if test "x$BUILD_AV" = "xyes"; then ], [ AC_MSG_NOTICE([No A/V library; disabling A/V support]) + BUILD_AV="no" ]) ], [ AC_MSG_NOTICE([No openal library; disabling A/V support]) + BUILD_AV="no" ]) fi diff --git a/src/friendlist.c b/src/friendlist.c index a625bfa..430bfeb 100644 --- a/src/friendlist.c +++ b/src/friendlist.c @@ -33,7 +33,10 @@ #include "chat.h" #include "friendlist.h" #include "misc_tools.h" + +#ifdef _SUPPORT_AUDIO #include "audio_call.h" +#endif extern char *DATA_FILE; extern ToxWindow *prompt;