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:
parent
c5c532fc31
commit
cbca269d75
1 changed files with 4 additions and 0 deletions
|
@ -28,6 +28,10 @@
|
|||
|
||||
#include "socket.h"
|
||||
|
||||
#ifndef _WIN32
|
||||
#include <sys/select.h>
|
||||
#endif
|
||||
|
||||
#include <android-base/errors.h>
|
||||
#include <android-base/stringprintf.h>
|
||||
|
||||
|
|
Loading…
Reference in a new issue