python-pyasn: bump to version 1.6.0b1
[buildroot-gz.git] / package / fbterm / 0001-fbio.cpp-improxy.cpp-fbterm.cpp-fix-musl-compile.patch
blob27e1e9106804be67776108df394a0b6cf3839a1e
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
5 MIME-Version: 1.0
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
12 static fd_set fds;
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>
23 ---
24 src/fbio.cpp | 1 +
25 src/fbterm.cpp | 4 ++++
26 src/improxy.cpp | 1 +
27 3 files changed, 6 insertions(+)
29 diff --git a/src/fbio.cpp b/src/fbio.cpp
30 index 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
41 diff --git a/src/fbterm.cpp b/src/fbterm.cpp
42 index 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"
49 +#ifndef WAIT_ANY
50 +#define WAIT_ANY (-1)
51 +#endif
53 #ifdef HAVE_SIGNALFD
54 // <sys/signalfd.h> offered by some systems has bug with g++
55 #include "signalfd.h"
56 diff --git a/src/improxy.cpp b/src/improxy.cpp
57 index 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 --
69 2.1.4