diff --git a/src/sdl/i_cdmus.c b/src/sdl/i_cdmus.c
index f3f7036677dfb1092dc23170e64bd60cd7287619..f430b83ccbc9f6cd316b262cd1cd073a95b98389 100644
--- a/src/sdl/i_cdmus.c
+++ b/src/sdl/i_cdmus.c
@@ -1,3 +1,4 @@
+#ifdef HAVE_SDL
 #include "../command.h"
 #include "../s_sound.h"
 #include "../i_sound.h"