• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/fbterm/0001-fbio.cpp-improxy.cpp-fbterm.cpp-fix-musl-compile.patch
Peter SeidererPeter Seiderer committed aa85304df5908 Oct 2015
Raw file
Source viewDiff to previous
 
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
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
​
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(+)
28
​
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"
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"
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>
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.