summaryrefslogtreecommitdiffstats
path: root/ucad.c
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2017-10-13 17:13:28 +0200
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2017-10-13 17:13:28 +0200
commit7c283feb273c2df98a4b948c8f3005ae5d84c984 (patch)
tree38dc205c11916b997bab2dba17d828e3ed2d4b14 /ucad.c
parentb4ba5c023eb7349589faf5f4a8eb41479d24a95c (diff)
downloaduca-net-7c283feb273c2df98a4b948c8f3005ae5d84c984.tar.gz
uca-net-7c283feb273c2df98a4b948c8f3005ae5d84c984.tar.bz2
uca-net-7c283feb273c2df98a4b948c8f3005ae5d84c984.tar.xz
uca-net-7c283feb273c2df98a4b948c8f3005ae5d84c984.zip
Include glib-unix.h for g_unix_signal_add
Diffstat (limited to 'ucad.c')
-rw-r--r--ucad.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ucad.c b/ucad.c
index 7467906..07e9157 100644
--- a/ucad.c
+++ b/ucad.c
@@ -16,6 +16,7 @@
Franklin St, Fifth Floor, Boston, MA 02110, USA */
#include <glib-object.h>
+#include <glib-unix.h>
#include <gio/gio.h>
#include <string.h>
#include <signal.h>
@@ -427,7 +428,7 @@ serve (UcaCamera *camera, guint16 port, GError **error)
g_signal_connect (service, "run", G_CALLBACK (run_callback), camera);
loop = g_main_loop_new (NULL, TRUE);
- g_unix_signal_add (SIGINT, g_main_loop_quit, loop);
+ g_unix_signal_add (SIGINT, (GSourceFunc) g_main_loop_quit, loop);
g_main_loop_run (loop);
}