diff options
author | Benjamin Berg <bberg@redhat.com> | 2019-01-24 15:40:48 +0100 |
---|---|---|
committer | Carlos Garnacho <mrgarnacho@gmail.com> | 2019-02-23 10:39:23 +0000 |
commit | d692de68994d3091bfa4e3fc77a35928902e67b8 (patch) | |
tree | e948f17bded5c1e1c514720cff8bccdd18402725 | |
parent | e207fa6452ad0cb1fdbb5d323c32af3aba4a8c05 (diff) | |
download | gnome-settings-daemon-d692de68994d3091bfa4e3fc77a35928902e67b8.tar.gz |
meson: Fix GUdev assert on Linux
GUdev is required to compile g-s-d on linux. Unfortunately the assertion
would never be hit as is.
-rw-r--r-- | meson.build | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/meson.build b/meson.build index 075091e6..7ea5e369 100644 --- a/meson.build +++ b/meson.build @@ -120,10 +120,12 @@ libgvc_dep = libgvc.get_variable('libgvc_dep') # GUdev integration (default enabled) enable_gudev = get_option('gudev') if enable_gudev - assert(enable_gudev, 'GUdev is not optional on Linux platforms') gudev_dep = dependency('gudev-1.0') endif config_h.set10('HAVE_GUDEV', enable_gudev) +if host_is_linux + assert(enable_gudev, 'GUdev is not optional on Linux platforms') +endif has_timerfd_create = cc.has_function('timerfd_create') config_h.set10('HAVE_TIMERFD', has_timerfd_create) |