Skip to content

Commit

Permalink
meson: Test to build xserver_poll.c was inverted
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
jon-turney authored and nwnk committed May 4, 2017
1 parent 4b7dd6d commit 3b3ce4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions os/meson.build
Expand Up @@ -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
Expand Down

0 comments on commit 3b3ce4a

Please sign in to comment.