cross/mipsel-linux-uclibc/buildroot/buildroot-2025.02.4/package/screen/0004-Renamed-sched.h-to-eve...

252 lines
12 KiB
Diff

From 50041d75d59e7343f1fd45bec5bd0c92b47e0a8e Mon Sep 17 00:00:00 2001
From: Maarten ter Huurne <maarten@treewalker.org>
Date: Mon, 15 Sep 2014 00:24:41 +0200
Subject: [PATCH] Renamed sched.h to eventqueue.h
There is a <sched.h> system header that got shadowed by "sched.h".
While Screen itself doesn't include <sched.h>, other system headers
might include it indirectly. This broke the build when using uClibc
with pthread support.
Signed-off-by: Maarten ter Huurne <maarten@treewalker.org>
[Julien: rebase on top of 4.9.1]
[Julien: rebase on top of 5.0.0, renamed all occurences of sched.h]
Signed-off-by: Julien Olivain <ju.o@free.fr>
---
Makefile.in | 66 ++++++++++++++++++++---------------------
canvas.h | 2 +-
sched.h => eventqueue.h | 0
sched.c | 2 +-
screen.h | 2 +-
window.h | 2 +-
winmsg.c | 2 +-
7 files changed, 38 insertions(+), 38 deletions(-)
rename sched.h => eventqueue.h (100%)
diff --git a/Makefile.in b/Makefile.in
index d03129e..69ffe60 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -165,116 +165,116 @@ depend.in: $(CFILES) term.h
###############################################################################
### Dependencies:
-screen.o: screen.c config.h screen.h os.h ansi.h sched.h acls.h comm.h \
+screen.o: screen.c config.h screen.h os.h ansi.h eventqueue.h acls.h comm.h \
layer.h term.h image.h canvas.h display.h layout.h viewport.h window.h \
logfile.h winmsg.h winmsgbuf.h winmsgcond.h backtick.h \
fileio.h mark.h attacher.h encoding.h help.h misc.h process.h socket.h \
termcap.h tty.h utmp.h
-ansi.o: ansi.c config.h screen.h os.h ansi.h sched.h acls.h comm.h \
+ansi.o: ansi.c config.h screen.h os.h ansi.h eventqueue.h acls.h comm.h \
layer.h term.h image.h canvas.h display.h layout.h viewport.h window.h \
logfile.h winmsg.h winmsgbuf.h winmsgcond.h backtick.h encoding.h \
fileio.h help.h mark.h misc.h process.h resize.h
-fileio.o: fileio.c config.h screen.h os.h ansi.h sched.h acls.h comm.h \
+fileio.o: fileio.c config.h screen.h os.h ansi.h eventqueue.h acls.h comm.h \
layer.h term.h image.h canvas.h display.h layout.h viewport.h window.h \
logfile.h fileio.h misc.h process.h winmsgbuf.h termcap.h encoding.h
-mark.o: mark.c config.h screen.h os.h ansi.h sched.h acls.h comm.h \
+mark.o: mark.c config.h screen.h os.h ansi.h eventqueue.h acls.h comm.h \
layer.h term.h image.h canvas.h display.h layout.h viewport.h window.h \
logfile.h encoding.h fileio.h mark.h process.h winmsgbuf.h search.h
-misc.o: misc.c config.h screen.h os.h ansi.h sched.h acls.h comm.h \
+misc.o: misc.c config.h screen.h os.h ansi.h eventqueue.h acls.h comm.h \
layer.h term.h image.h canvas.h display.h layout.h viewport.h window.h \
logfile.h
-resize.o: resize.c config.h screen.h os.h ansi.h sched.h acls.h comm.h \
+resize.o: resize.c config.h screen.h os.h ansi.h eventqueue.h acls.h comm.h \
layer.h term.h image.h canvas.h display.h layout.h viewport.h window.h \
logfile.h process.h winmsgbuf.h resize.h telnet.h
-socket.o: socket.c config.h screen.h os.h ansi.h sched.h acls.h comm.h \
+socket.o: socket.c config.h screen.h os.h ansi.h eventqueue.h acls.h comm.h \
layer.h term.h image.h canvas.h display.h layout.h viewport.h window.h \
logfile.h encoding.h fileio.h list_generic.h misc.h process.h \
winmsgbuf.h resize.h socket.h termcap.h tty.h utmp.h
-search.o: search.c config.h screen.h os.h ansi.h sched.h acls.h comm.h \
+search.o: search.c config.h screen.h os.h ansi.h eventqueue.h acls.h comm.h \
layer.h term.h image.h canvas.h display.h layout.h viewport.h window.h \
logfile.h mark.h input.h
-tty.o: tty.c config.h screen.h os.h ansi.h sched.h acls.h comm.h layer.h \
+tty.o: tty.c config.h screen.h os.h ansi.h eventqueue.h acls.h comm.h layer.h \
term.h image.h canvas.h display.h layout.h viewport.h window.h logfile.h \
fileio.h misc.h pty.h telnet.h tty.h
term.o: term.c term.h
-window.o: window.c config.h screen.h os.h ansi.h sched.h acls.h comm.h \
+window.o: window.c config.h screen.h os.h ansi.h eventqueue.h acls.h comm.h \
layer.h term.h image.h canvas.h display.h layout.h viewport.h window.h \
logfile.h winmsg.h winmsgbuf.h winmsgcond.h backtick.h fileio.h help.h \
input.h mark.h misc.h process.h pty.h resize.h telnet.h termcap.h tty.h \
utmp.h
-utmp.o: utmp.c config.h screen.h os.h ansi.h sched.h acls.h comm.h \
+utmp.o: utmp.c config.h screen.h os.h ansi.h eventqueue.h acls.h comm.h \
layer.h term.h image.h canvas.h display.h layout.h viewport.h window.h \
logfile.h misc.h tty.h utmp.h
-help.o: help.c config.h screen.h os.h ansi.h sched.h acls.h comm.h \
+help.o: help.c config.h screen.h os.h ansi.h eventqueue.h acls.h comm.h \
layer.h term.h image.h canvas.h display.h layout.h viewport.h window.h \
logfile.h misc.h list_generic.h process.h winmsgbuf.h
-termcap.o: termcap.c config.h screen.h os.h ansi.h sched.h acls.h comm.h \
+termcap.o: termcap.c config.h screen.h os.h ansi.h eventqueue.h acls.h comm.h \
layer.h term.h image.h canvas.h display.h layout.h viewport.h window.h \
logfile.h encoding.h misc.h process.h winmsgbuf.h resize.h termcap.h
-input.o: input.c config.h screen.h os.h ansi.h sched.h acls.h comm.h \
+input.o: input.c config.h screen.h os.h ansi.h eventqueue.h acls.h comm.h \
layer.h term.h image.h canvas.h display.h layout.h viewport.h window.h \
logfile.h misc.h
-attacher.o: attacher.c config.h screen.h os.h ansi.h sched.h acls.h \
+attacher.o: attacher.c config.h screen.h os.h ansi.h eventqueue.h acls.h \
comm.h layer.h term.h image.h canvas.h display.h layout.h viewport.h \
window.h logfile.h misc.h socket.h tty.h
-pty.o: pty.c config.h screen.h os.h ansi.h sched.h acls.h comm.h layer.h \
+pty.o: pty.c config.h screen.h os.h ansi.h eventqueue.h acls.h comm.h layer.h \
term.h image.h canvas.h display.h layout.h viewport.h window.h logfile.h
-process.o: process.c config.h screen.h os.h ansi.h sched.h acls.h comm.h \
+process.o: process.c config.h screen.h os.h ansi.h eventqueue.h acls.h comm.h \
layer.h term.h image.h canvas.h display.h layout.h viewport.h window.h \
logfile.h winmsg.h winmsgbuf.h winmsgcond.h backtick.h encoding.h \
fileio.h help.h input.h kmapdef.h list_generic.h mark.h misc.h process.h \
resize.h search.h socket.h telnet.h termcap.h tty.h utmp.h
-display.o: display.c config.h screen.h os.h ansi.h sched.h acls.h comm.h \
+display.o: display.c config.h screen.h os.h ansi.h eventqueue.h acls.h comm.h \
layer.h term.h image.h canvas.h display.h layout.h viewport.h window.h \
logfile.h winmsg.h winmsgbuf.h winmsgcond.h backtick.h encoding.h mark.h \
misc.h process.h pty.h resize.h termcap.h tty.h
-comm.o: comm.c config.h os.h screen.h ansi.h sched.h acls.h comm.h \
+comm.o: comm.c config.h os.h screen.h ansi.h eventqueue.h acls.h comm.h \
layer.h term.h image.h canvas.h display.h layout.h viewport.h window.h \
logfile.h
kmapdef.o: kmapdef.c config.h
-acls.o: acls.c config.h screen.h os.h ansi.h sched.h acls.h comm.h \
+acls.o: acls.c config.h screen.h os.h ansi.h eventqueue.h acls.h comm.h \
layer.h term.h image.h canvas.h display.h layout.h viewport.h window.h \
logfile.h mark.h misc.h process.h winmsgbuf.h
-logfile.o: logfile.c config.h screen.h os.h ansi.h sched.h acls.h comm.h \
+logfile.o: logfile.c config.h screen.h os.h ansi.h eventqueue.h acls.h comm.h \
layer.h term.h image.h canvas.h display.h layout.h viewport.h window.h \
logfile.h misc.h
-layer.o: layer.c config.h screen.h os.h ansi.h sched.h acls.h comm.h \
+layer.o: layer.c config.h screen.h os.h ansi.h eventqueue.h acls.h comm.h \
layer.h term.h image.h canvas.h display.h layout.h viewport.h window.h \
logfile.h encoding.h mark.h tty.h
-winmsg.o: winmsg.c config.h screen.h os.h ansi.h sched.h acls.h comm.h \
+winmsg.o: winmsg.c config.h screen.h os.h ansi.h eventqueue.h acls.h comm.h \
layer.h term.h image.h canvas.h display.h layout.h viewport.h window.h \
logfile.h winmsg.h winmsgbuf.h winmsgcond.h backtick.h fileio.h \
process.h mark.h
-winmsgbuf.o: winmsgbuf.c winmsgbuf.h screen.h os.h ansi.h sched.h acls.h \
+winmsgbuf.o: winmsgbuf.c winmsgbuf.h screen.h os.h ansi.h eventqueue.h acls.h \
comm.h layer.h term.h image.h canvas.h display.h layout.h viewport.h \
window.h logfile.h
winmsgcond.o: winmsgcond.c winmsgcond.h
-backtick.o: backtick.c backtick.h screen.h os.h ansi.h sched.h acls.h \
+backtick.o: backtick.c backtick.h screen.h os.h ansi.h eventqueue.h acls.h \
comm.h layer.h term.h image.h canvas.h display.h layout.h viewport.h \
window.h logfile.h fileio.h
-sched.o: sched.c config.h screen.h os.h ansi.h sched.h acls.h comm.h \
+sched.o: sched.c config.h screen.h os.h ansi.h eventqueue.h acls.h comm.h \
layer.h term.h image.h canvas.h display.h layout.h viewport.h window.h \
logfile.h
telnet.o: telnet.c config.h comm.h
-encoding.o: encoding.c config.h screen.h os.h ansi.h sched.h acls.h \
+encoding.o: encoding.c config.h screen.h os.h ansi.h eventqueue.h acls.h \
comm.h layer.h term.h image.h canvas.h display.h layout.h viewport.h \
window.h logfile.h encoding.h fileio.h
-canvas.o: canvas.c config.h screen.h os.h ansi.h sched.h acls.h comm.h \
+canvas.o: canvas.c config.h screen.h os.h ansi.h eventqueue.h acls.h comm.h \
layer.h term.h image.h canvas.h display.h layout.h viewport.h window.h \
logfile.h help.h list_generic.h resize.h
-layout.o: layout.c config.h screen.h os.h ansi.h sched.h acls.h comm.h \
+layout.o: layout.c config.h screen.h os.h ansi.h eventqueue.h acls.h comm.h \
layer.h term.h image.h canvas.h display.h layout.h viewport.h window.h \
logfile.h fileio.h misc.h process.h winmsgbuf.h resize.h
-viewport.o: viewport.c config.h screen.h os.h ansi.h sched.h acls.h \
+viewport.o: viewport.c config.h screen.h os.h ansi.h eventqueue.h acls.h \
comm.h layer.h term.h image.h canvas.h display.h layout.h viewport.h \
window.h logfile.h
-list_display.o: list_display.c config.h screen.h os.h ansi.h sched.h \
+list_display.o: list_display.c config.h screen.h os.h ansi.h eventqueue.h \
acls.h comm.h layer.h term.h image.h canvas.h display.h layout.h \
viewport.h window.h logfile.h list_generic.h misc.h
-list_generic.o: list_generic.c config.h screen.h os.h ansi.h sched.h \
+list_generic.o: list_generic.c config.h screen.h os.h ansi.h eventqueue.h \
acls.h comm.h layer.h term.h image.h canvas.h display.h layout.h \
viewport.h window.h logfile.h input.h list_generic.h misc.h
-list_window.o: list_window.c config.h screen.h os.h ansi.h sched.h acls.h \
+list_window.o: list_window.c config.h screen.h os.h ansi.h eventqueue.h acls.h \
comm.h layer.h term.h image.h canvas.h display.h layout.h viewport.h \
window.h logfile.h winmsg.h winmsgbuf.h winmsgcond.h backtick.h input.h \
list_generic.h misc.h process.h
diff --git a/canvas.h b/canvas.h
index 8460d9a..ec5fdaa 100644
--- a/canvas.h
+++ b/canvas.h
@@ -31,7 +31,7 @@
#define SCREEN_CANVAS_H
#include "layer.h"
-#include "sched.h"
+#include "eventqueue.h"
#define SLICE_UNKN 0
#define SLICE_VERT (1 << 0)
diff --git a/sched.h b/eventqueue.h
similarity index 100%
rename from sched.h
rename to eventqueue.h
diff --git a/sched.c b/sched.c
index 3618f11..dc59b11 100644
--- a/sched.c
+++ b/sched.c
@@ -28,7 +28,7 @@
#include "config.h"
-#include "sched.h"
+#include "eventqueue.h"
#include <poll.h>
#include <stdint.h>
diff --git a/screen.h b/screen.h
index 308c365..e39c2b1 100644
--- a/screen.h
+++ b/screen.h
@@ -67,7 +67,7 @@ struct mode {
#include "ansi.h"
#include "image.h"
#include "layer.h"
-#include "sched.h"
+#include "eventqueue.h"
#include "term.h"
#include "window.h"
diff --git a/window.h b/window.h
index bc08c6c..294aa64 100644
--- a/window.h
+++ b/window.h
@@ -35,7 +35,7 @@
#include "config.h"
-#include "sched.h"
+#include "eventqueue.h"
#include "logfile.h"
#include "screen.h"
#include "layer.h"
diff --git a/winmsg.c b/winmsg.c
index 2418439..891a20a 100644
--- a/winmsg.c
+++ b/winmsg.c
@@ -44,7 +44,7 @@
#include "logfile.h"
#include "mark.h"
#include "process.h"
-#include "sched.h"
+#include "eventqueue.h"
/* TODO: rid global variable (has been renamed to point this out; see commit
* history) */
--
2.46.2