Posted to tcl by schelte at Wed Nov 18 21:06:49 GMT 2026view raw

  1. diff --git a/pkgIndex.tcl.in b/pkgIndex.tcl.in
  2. index d7566b4..8aa3048 100644
  3. --- a/pkgIndex.tcl.in
  4. +++ b/pkgIndex.tcl.in
  5. @@ -1,5 +1,10 @@
  6. #
  7. # Tcl package index file
  8. #
  9. -package ifneeded @PACKAGE_NAME@ @PACKAGE_VERSION@ \
  10. - [list load [file join $dir @PKG_LIB_FILE@] @PACKAGE_NAME@]
  11. +if {[package vsatisfies [package provide Tcl] 9.0]} {
  12. + package ifneeded @PACKAGE_NAME@ @PACKAGE_VERSION@ \
  13. + [list load [file join $dir @PKG_LIB_FILE9@]]
  14. +} else {
  15. + package ifneeded @PACKAGE_NAME@ @PACKAGE_VERSION@ \
  16. + [list load [file join $dir @PKG_LIB_FILE8@]]
  17. +}
  18. diff --git a/signal_ext.c b/signal_ext.c
  19. index aa53551..3806ae5 100644
  20. --- a/signal_ext.c
  21. +++ b/signal_ext.c
  22. @@ -214,7 +214,7 @@ int Signal_ext_Init ( Tcl_Interp *interp )
  23. {
  24. static int initialized = 0;
  25.  
  26. - if (Tcl_InitStubs(interp, TCL_PATCH_LEVEL, 0) == NULL)
  27. + if (Tcl_InitStubs(interp, TCL_VERSION, 0) == NULL)
  28. return TCL_ERROR;
  29.  
  30. if (Tcl_PkgProvide(interp, PACKAGE_NAME, PACKAGE_VERSION) != TCL_OK)
  31.  

Add a comment

Please note that this site uses the meta tags nofollow,noindex for all pages that contain comments.
Items are closed for new comments after 1 week