summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2017-03-08 05:33:19 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2017-03-17 04:00:52 +0100
commiteccb31b237e16f75b0b60b5bfa18501823d7b2c3 (patch)
treea79de6d0a526710888a37879a10f4e6b496b7ce6
parent0d4977ea5f774732a6fbb45395c28eb0242da937 (diff)
package/screen: fix build
The problem is, sched.h is found in the local directory and therefore falsely included from system headers. This probably has something to do with openadk relying on builtin header inclusion in gcc instead of specifying them explicitly. Signed-off-by: Phil Sutter <phil@nwl.cc>
-rw-r--r--package/screen/Makefile1
-rw-r--r--package/screen/patches/patch-screen_h11
2 files changed, 12 insertions, 0 deletions
diff --git a/package/screen/Makefile b/package/screen/Makefile
index a46433940..090e25b57 100644
--- a/package/screen/Makefile
+++ b/package/screen/Makefile
@@ -31,6 +31,7 @@ pre-build:
echo '#undef GETUTENT' >> ${WRKBUILD}/config.h
echo '#undef UTHOST' >> ${WRKBUILD}/config.h
echo '#undef BUGGYGETLOGIN' >> ${WRKBUILD}/config.h
+ mv ${WRKBUILD}/sched.h ${WRKBUILD}/my_sched.h
screen-install:
${INSTALL_DIR} ${IDIR_SCREEN}/usr/bin
diff --git a/package/screen/patches/patch-screen_h b/package/screen/patches/patch-screen_h
new file mode 100644
index 000000000..ef6e5ea54
--- /dev/null
+++ b/package/screen/patches/patch-screen_h
@@ -0,0 +1,11 @@
+--- screen-4.2.1.orig/screen.h 2014-04-28 00:08:06.000000000 +0200
++++ screen-4.2.1/screen.h 2015-02-19 02:36:51.299000393 +0100
+@@ -43,7 +43,7 @@
+ #include "osdef.h"
+
+ #include "ansi.h"
+-#include "sched.h"
++#include "my_sched.h"
+ #include "acls.h"
+ #include "comm.h"
+ #include "layer.h"