diff --git a/modules/virtchannel_base/string.tcl b/modules/virtchannel_base/string.tcl index 277f9496c4..b3b3f85ce7 100644 --- a/modules/virtchannel_base/string.tcl +++ b/modules/virtchannel_base/string.tcl @@ -26,7 +26,9 @@ # # ## ### ##### ######## ############# package require Tcl 8.5 9 -package require TclOO +if {[catch {package require tcl::oo}]} { + package require TclOO +} package require tcl::chan::events # # ## ### ##### ######## ############# diff --git a/modules/virtchannel_core/core.tcl b/modules/virtchannel_core/core.tcl index f31ac628ed..a54892ef81 100644 --- a/modules/virtchannel_core/core.tcl +++ b/modules/virtchannel_core/core.tcl @@ -22,7 +22,9 @@ # # ## ### ##### ######## ############# package require Tcl 8.5 9 -package require TclOO +if {[catch {package require tcl::oo}]} { + package require TclOO +} # # ## ### ##### ######## ############# diff --git a/modules/virtchannel_core/events.tcl b/modules/virtchannel_core/events.tcl index e84f60618a..6a7efc57a0 100644 --- a/modules/virtchannel_core/events.tcl +++ b/modules/virtchannel_core/events.tcl @@ -27,7 +27,9 @@ # # ## ### ##### ######## ############# package require Tcl 8.5 9 -package require TclOO +if {[catch {package require tcl::oo}]} { + package require TclOO +} package require tcl::chan::core # # ## ### ##### ######## #############