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 --- package/screen/Makefile | 1 + package/screen/patches/patch-screen_h | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 package/screen/patches/patch-screen_h
diff --git a/package/screen/Makefile b/package/screen/Makefile index a46433940cc7a..090e25b5713f8 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 0000000000000..ef6e5ea54a189 --- /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"