From cbca269d75f885468e179608fddcac4eae27c81f Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Mon, 16 Aug 2021 17:20:19 -0700 Subject: [PATCH] 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 --- fastboot/socket.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fastboot/socket.cpp b/fastboot/socket.cpp index 5a14b6377..3096905a1 100644 --- a/fastboot/socket.cpp +++ b/fastboot/socket.cpp @@ -28,6 +28,10 @@ #include "socket.h" +#ifndef _WIN32 +#include +#endif + #include #include