[PATCH xserver 1/4] meson: Test to build xserver_poll.c was inverted

Jon Turney jon.turney at dronecode.org.uk
Thu May 4 12:46:23 UTC 2017


Test to build xserver_poll.c was inverted compared to autoconf. Build
xserver_poll.c if poll is missing.

Signed-off-by: Jon Turney <jon.turney at dronecode.org.uk>
---
 os/meson.build | 4 ++--
 1 file 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
-- 
2.12.2



More information about the xorg-devel mailing list