mirror of
https://git.yoctoproject.org/poky
synced 2026-04-26 18:32:13 +02:00
Tcl 8.4.0 changed the channel implementation, take a patch submitted upstream to update the code for the new interface and remove the silencing of the incompatible assignment error which was due to this issue. (From OE-Core rev: a56ca08159fbdbc27511376f45720bb8ea068fc4) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
28 lines
986 B
Diff
28 lines
986 B
Diff
Adjustments for compatibility with the currrent (Tcl 8.4.0+) channel
|
|
implementation.
|
|
|
|
Upstream-Status: Submitted [https://sourceforge.net/p/expect/patches/24/]
|
|
Signed-off-by: Ross Burton <ross.burton@arm.com>
|
|
|
|
diff --git a/exp_chan.c b/exp_chan.c
|
|
index c92e26b6fbd02305..944200a63b102672 100644
|
|
--- a/exp_chan.c
|
|
+++ b/exp_chan.c
|
|
@@ -60,7 +60,7 @@ void exp_background_channelhandler _ANSI_ARGS_((ClientData,
|
|
|
|
Tcl_ChannelType expChannelType = {
|
|
"exp", /* Type name. */
|
|
- ExpBlockModeProc, /* Set blocking/nonblocking mode.*/
|
|
+ TCL_CHANNEL_VERSION_2,
|
|
ExpCloseProc, /* Close proc. */
|
|
ExpInputProc, /* Input proc. */
|
|
ExpOutputProc, /* Output proc. */
|
|
@@ -70,6 +70,7 @@ Tcl_ChannelType expChannelType = {
|
|
ExpWatchProc, /* Initialize notifier. */
|
|
ExpGetHandleProc, /* Get OS handles out of channel. */
|
|
NULL, /* Close2 proc */
|
|
+ ExpBlockModeProc, /* Set blocking/nonblocking mode.*/
|
|
};
|
|
|
|
typedef struct ThreadSpecificData {
|