Include sys/select.h for fd_set

socket.cpp fails to compile on musl with a missing definition of
fd_set.  Include sys/select.h for the definition.

Bug: 190084016
Test: m USE_HOST_MUSL=true fastboot
Change-Id: I095a56381a85981f42444f4c39ae8e7786d8640f
This commit is contained in:
Colin Cross 2021-08-16 17:20:19 -07:00
parent c5c532fc31
commit cbca269d75

View file

@ -28,6 +28,10 @@
#include "socket.h"
#ifndef _WIN32
#include <sys/select.h>
#endif
#include <android-base/errors.h>
#include <android-base/stringprintf.h>