mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2026-05-05 14:38:05 +02:00
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
This commit is contained in:
parent
abfb19d472
commit
2b42890480
1 changed files with 3 additions and 3 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue