The SICStus Prolog compatibility package can be accessed by issuing the directive
The effect of the compatibility library is local to the module where it is loaded (except for the redefinition of some global event handlers). The directive must therefore be given in every module that wants to use the compatibility mode.:- use_module(library(sicstus)).