--- a/src/cb/src/platforms/linux.cpp
+++ b/src/cb/src/platforms/linux.cpp
@@ -14,7 +14,10 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see .*/
#include "../clipboard.hpp"
+
+#if defined(USE_ALSA)
#include
+#endif
void dummy_handler(const char* file, int line, const char* function, int err, const char* fmt, ...) {}