summaryrefslogtreecommitdiff
path: root/os
diff options
context:
space:
mode:
authorJon TURNEY <jon.turney@dronecode.org.uk>2017-05-04 13:46:23 +0100
committerAdam Jackson <ajax@redhat.com>2017-05-04 10:28:08 -0400
commit3b3ce4a55b0c1f83eff37fb8544156e8961f3fa3 (patch)
tree870bf806c1766bb5831535be96fa906c75166c89 /os
parent4b7dd6d1aa53bdeee2e3fd0c0a73f6ce40495682 (diff)
meson: Test to build xserver_poll.c was inverted
Test to build xserver_poll.c was inverted compared to autoconf. Build xserver_poll.c if poll is missing. Reviewed-by: Adam Jackson <ajax@redhat.com> Signed-off-by: Jon Turney <jon.turney@dronecode.org.uk>
Diffstat (limited to 'os')
-rw-r--r--os/meson.build4
1 files changed, 2 insertions, 2 deletions
diff --git a/os/meson.build b/os/meson.build
index e1741bb50..724e6d1a8 100644
--- a/os/meson.build
+++ b/os/meson.build
@@ -42,10 +42,10 @@ endif
if not cc.has_function('timingsafe_memcmp')
srcs_libc += 'timingsafe_memcmp.c'
endif
-
-if cc.has_function('poll')
+if not cc.has_function('poll')
srcs_os += 'xserver_poll.c'
endif
+
if cc.has_function('sigaction')
srcs_os += 'busfault.c'
endif