From 9c3b8f4acc33b5cb1d1226ae16c95616fd8045a2 Mon Sep 17 00:00:00 2001 From: Nathan Owens Date: Fri, 27 Dec 2019 09:27:12 -0600 Subject: [PATCH] Add sys/select.h for musl Reviewed-by: Nathan Owens ndowens04@gmail.com --- meson.build | 4 ++++ vtest/vtest_server.c | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 85b6500..6e7f41a 100644 --- a/meson.build +++ b/meson.build @@ -96,6 +96,10 @@ if cc.has_header('sys/eventfd.h') conf_data.set('HAVE_EVENTFD_H', 1) endif +if cc.has_header('sys/select.h') + conf_data.set('HAVE_SYS_SELECT_H', 1) +endif + debug_enabled = get_option('debug') if debug_enabled diff --git a/vtest/vtest_server.c b/vtest/vtest_server.c index ed2f74b..d31a41f 100644 --- a/vtest/vtest_server.c +++ b/vtest/vtest_server.c @@ -39,7 +39,9 @@ #include "vtest.h" #include "vtest_protocol.h" #include "virglrenderer.h" - +#ifdef HAVE_SYS_SELECT_H +#include +#endif struct vtest_program