1 From 1072d60c6c8f1f51feb740527a8a056bfead9318 Mon Sep 17 00:00:00 2001
2 From: Peter Seiderer <ps.report@gmx.net>
3 Date: Thu, 8 Oct 2015 19:53:47 +0200
4 Subject: [PATCH] fbio.cpp, improxy.cpp, fbterm.cpp: fix musl compile
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
9 - add missing include, fixes:
11 fbio.cpp:33:8: error: ‘fd_set’ does not name a type
14 improxy.cpp:439:3: error: ‘fd_set’ was not declared in this scope
16 - add missing WAIT_ANY define, fixes:
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);
22 Signed-off-by: Peter Seiderer <ps.report@gmx.net>
25 src/fbterm.cpp | 4 ++++
27 3 files changed, 6 insertions(+)
29 diff --git a/src/fbio.cpp b/src/fbio.cpp
30 index e5afc44..88c632c 100644
34 #define NR_EPOLL_FDS 10
37 +#include <sys/select.h>
41 diff --git a/src/fbterm.cpp b/src/fbterm.cpp
42 index 38d4014..60288e4 100644
46 #include "input_key.h"
50 +#define WAIT_ANY (-1)
54 // <sys/signalfd.h> offered by some systems has bug with g++
56 diff --git a/src/improxy.cpp b/src/improxy.cpp
57 index 3d03e66..4e046d2 100644
64 +#include <sys/select.h>
65 #include <sys/socket.h>
67 #include "immessage.h"