summaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorLeon Henrik Plickat <leonhenrik.plickat@stud.uni-goettingen.de>2021-11-14 05:20:29 +0100
committerLeon Henrik Plickat <leonhenrik.plickat@stud.uni-goettingen.de>2021-11-14 05:28:10 +0100
commite3d31b2c02a6b4e4582b0f2ebbc51d7b69539d48 (patch)
tree170b0f640ae75d1cdf324289a36c31616ce9a2e1 /meson.build
parentd933ed4dd56f38285f4aef61b487307a497574c5 (diff)
downloadwlclock-e3d31b2c02a6b4e4582b0f2ebbc51d7b69539d48.tar.gz
wlclock-e3d31b2c02a6b4e4582b0f2ebbc51d7b69539d48.tar.bz2
Improve signal handling
This patch replaces the signalfd based signal handling with a more traditional approach. Since this is not only more reliable, but also more portable, the compile time option to turn off signal handling has been removed. It was only optional before based on signalf being a linux-ism.
Diffstat (limited to '')
-rw-r--r--meson.build9
1 files changed, 1 insertions, 8 deletions
diff --git a/meson.build b/meson.build
index e7ab904..6d5c7ff 100644
--- a/meson.build
+++ b/meson.build
@@ -23,10 +23,6 @@ add_project_arguments(cc.get_supported_arguments([
'-Wformat',
]), language: 'c')
-if get_option('handle-signals').enabled()
- add_project_arguments(cc.get_supported_arguments([ '-DHANDLE_SIGNALS' ]), language: 'c')
-endif
-
wayland_protocols = dependency('wayland-protocols')
wayland_client = dependency('wayland-client', include_type: 'system')
wayland_cursor = dependency('wayland-cursor', include_type: 'system')
@@ -35,9 +31,7 @@ realtime = cc.find_library('rt')
math = cc.find_library('m')
if ['dragonfly', 'freebsd', 'netbsd', 'openbsd'].contains(host_machine.system())
- libepoll = dependency('epoll-shim', required: get_option('handle-signals'))
-else
- libepoll = []
+ add_project_arguments(cc.get_supported_arguments([ '-DBSD' ]), language: 'c')
endif
subdir('protocol')
@@ -55,7 +49,6 @@ executable(
),
dependencies: [
cairo,
- libepoll,
math,
realtime,
wayland_client,