Posted to tcl by schelte at Wed Nov 18 21:06:49 GMT 2026view raw
- diff --git a/pkgIndex.tcl.in b/pkgIndex.tcl.in
- index d7566b4..8aa3048 100644
- --- a/pkgIndex.tcl.in
- +++ b/pkgIndex.tcl.in
- @@ -1,5 +1,10 @@
- #
- # Tcl package index file
- #
- -package ifneeded @PACKAGE_NAME@ @PACKAGE_VERSION@ \
- - [list load [file join $dir @PKG_LIB_FILE@] @PACKAGE_NAME@]
- +if {[package vsatisfies [package provide Tcl] 9.0]} {
- + package ifneeded @PACKAGE_NAME@ @PACKAGE_VERSION@ \
- + [list load [file join $dir @PKG_LIB_FILE9@]]
- +} else {
- + package ifneeded @PACKAGE_NAME@ @PACKAGE_VERSION@ \
- + [list load [file join $dir @PKG_LIB_FILE8@]]
- +}
- diff --git a/signal_ext.c b/signal_ext.c
- index aa53551..3806ae5 100644
- --- a/signal_ext.c
- +++ b/signal_ext.c
- @@ -214,7 +214,7 @@ int Signal_ext_Init ( Tcl_Interp *interp )
- {
- static int initialized = 0;
-
- - if (Tcl_InitStubs(interp, TCL_PATCH_LEVEL, 0) == NULL)
- + if (Tcl_InitStubs(interp, TCL_VERSION, 0) == NULL)
- return TCL_ERROR;
-
- if (Tcl_PkgProvide(interp, PACKAGE_NAME, PACKAGE_VERSION) != TCL_OK)
-
Add a comment