summaryrefslogtreecommitdiff
path: root/src/up-main.c
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2011-05-23 09:42:38 +0100
committerRichard Hughes <richard@hughsie.com>2011-05-23 09:42:38 +0100
commit2b42890480f21d55a2516de9126a9d83a54742da (patch)
treef3ae5984355de63ddf3bca8388c633eee2610238 /src/up-main.c
parentabfb19d472dea9139ff33649e9b9a8a1f3511ac0 (diff)
downloadupower-2b42890480f21d55a2516de9126a9d83a54742da.tar.gz
Only include glib-unix.h if the GLib version is >= 2.29.4
Many thanks to Takahiro HASHIMOTO for debugging the problem. Fixes fdo#37489
Diffstat (limited to 'src/up-main.c')
-rw-r--r--src/up-main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/up-main.c b/src/up-main.c
index 2e35f9e..c1e490b 100644
--- a/src/up-main.c
+++ b/src/up-main.c
@@ -41,7 +41,7 @@
#include "up-kbd-backlight.h"
#include "up-wakeups.h"
-#if GLIB_CHECK_VERSION(2,28,7)
+#if GLIB_CHECK_VERSION(2,29,4)
#include <glib-unix.h>
#endif
@@ -92,7 +92,7 @@ out:
return ret;
}
-#if GLIB_CHECK_VERSION(2,28,7)
+#if GLIB_CHECK_VERSION(2,29,4)
/**
* up_main_sigint_cb:
@@ -201,7 +201,7 @@ main (gint argc, gchar **argv)
goto out;
}
-#if GLIB_CHECK_VERSION(2,28,7)
+#if GLIB_CHECK_VERSION(2,29,4)
/* do stuff on ctrl-c */
g_unix_signal_add_watch_full (SIGINT,
G_PRIORITY_DEFAULT,