[client] ivshmem: fix missing <sys/select.h> include

While the function `ivshmem_wait_irq` makes use of the select(3)
function, it does not include <sys/select.h>. This happens to work on
glibc based systems, which include thet file transitively via other
header files. But on musl libc based systems, this breaks compilation.

Directly include <sys/select.h> to fix the problem.
This commit is contained in:
Patrick Steinhardt authored and Geoffrey McRae committed 2017-12-15 18:25:21 +11:00
1 parent 7bfed41523
commit fe337cf510
1 file changed
+2 -1
+2 -1
View File
@@ -30,6 +30,7 @@ Place, Suite 330, Boston, MA 02111-1307 USA
#include <sys/stat.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <sys/select.h>
#include <sys/mman.h>
@@ -544,4 +545,4 @@ bool ivshmem_kick_irq(uint16_t clientID, uint16_t vector)
DEBUG_ERROR("failed to send kick");
return false;
}
}