1From 1072d60c6c8f1f51feb740527a8a056bfead9318 Mon Sep 17 00:00:00 2001 2From: Peter Seiderer <ps.report@gmx.net> 3Date: Thu, 8 Oct 2015 19:53:47 +0200 4Subject: [PATCH] fbio.cpp, improxy.cpp, fbterm.cpp: fix musl compile 5MIME-Version: 1.0 6Content-Type: text/plain; charset=UTF-8 7Content-Transfer-Encoding: 8bit 8 9- add missing include, fixes: 10 11 fbio.cpp:33:8: error: ‘fd_set’ does not name a type 12 static fd_set fds; 13 14 improxy.cpp:439:3: error: ‘fd_set’ was not declared in this scope 15 16- add missing WAIT_ANY define, fixes: 17 18 fbterm.cpp: In member function ‘void FbTerm::processSignal(u32)’: 19 fbterm.cpp:212:22: error: ‘WAIT_ANY’ was not declared in this scope 20 s32 pid = waitpid(WAIT_ANY, 0, WNOHANG); 21 22Signed-off-by: Peter Seiderer <ps.report@gmx.net> 23--- 24 src/fbio.cpp | 1 + 25 src/fbterm.cpp | 4 ++++ 26 src/improxy.cpp | 1 + 27 3 files changed, 6 insertions(+) 28 29diff --git a/src/fbio.cpp b/src/fbio.cpp 30index e5afc44..88c632c 100644 31--- a/src/fbio.cpp 32+++ b/src/fbio.cpp 33@@ -30,6 +30,7 @@ 34 #define NR_EPOLL_FDS 10 35 s32 epollFd; 36 #else 37+#include <sys/select.h> 38 static fd_set fds; 39 static u32 maxfd = 0; 40 #endif 41diff --git a/src/fbterm.cpp b/src/fbterm.cpp 42index 38d4014..60288e4 100644 43--- a/src/fbterm.cpp 44+++ b/src/fbterm.cpp 45@@ -37,6 +37,10 @@ 46 #include "input_key.h" 47 #include "mouse.h" 48 49+#ifndef WAIT_ANY 50+#define WAIT_ANY (-1) 51+#endif 52+ 53 #ifdef HAVE_SIGNALFD 54 // <sys/signalfd.h> offered by some systems has bug with g++ 55 #include "signalfd.h" 56diff --git a/src/improxy.cpp b/src/improxy.cpp 57index 3d03e66..4e046d2 100644 58--- a/src/improxy.cpp 59+++ b/src/improxy.cpp 60@@ -23,6 +23,7 @@ 61 #include <stdio.h> 62 #include <string.h> 63 #include <errno.h> 64+#include <sys/select.h> 65 #include <sys/socket.h> 66 #include "improxy.h" 67 #include "immessage.h" 68-- 692.1.4 70 71