diff options
author | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2017-10-13 17:13:28 +0200 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2017-10-13 17:13:28 +0200 |
commit | 7c283feb273c2df98a4b948c8f3005ae5d84c984 (patch) | |
tree | 38dc205c11916b997bab2dba17d828e3ed2d4b14 | |
parent | b4ba5c023eb7349589faf5f4a8eb41479d24a95c (diff) | |
download | uca-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
-rw-r--r-- | ucad.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); } |