alsa-source: add missing header 'signal.h'
authorEero Nurkkala <eero.nurkkala@offcode.fi>
Thu, 31 May 2012 07:44:23 +0000 (10:44 +0300)
committerArun Raghavan <arun.raghavan@collabora.co.uk>
Tue, 3 Jul 2012 11:51:07 +0000 (17:21 +0530)
Compilation with -DDEBUG_TIMING fails due to a missing header:

modules/alsa/alsa-source.c: In function 'check_left_to_record':
modules/alsa/alsa-source.c:426:9: warning: implicit declaration of function 'raise' [-Wimplicit-function-declaration]
modules/alsa/alsa-source.c:426:9: error: 'SIGTRAP' undeclared (first use in this function)

Signed-off-by: Eero Nurkkala <eero.nurkkala@offcode.fi>
src/modules/alsa/alsa-source.c

index 97092bb..dfad817 100644 (file)
@@ -24,6 +24,7 @@
 #include <config.h>
 #endif
 
+#include <signal.h>
 #include <stdio.h>
 
 #include <asoundlib.h>