diff --git a/libsrc/common/atexit.s b/libsrc/common/atexit.s index 40f392a67..9827f7123 100644 --- a/libsrc/common/atexit.s +++ b/libsrc/common/atexit.s @@ -6,7 +6,6 @@ .export _atexit .destructor doatexit, 5 - .import __errno .import callax .include "errno.inc" diff --git a/libsrc/common/fmisc.s b/libsrc/common/fmisc.s index a8c913b5e..fc17a9a0a 100644 --- a/libsrc/common/fmisc.s +++ b/libsrc/common/fmisc.s @@ -1,4 +1,4 @@ -; +; ; Ullrich von Bassewitz, 31.05.1998 ; ; Several small file stream functions @@ -6,7 +6,6 @@ .export _clearerr, _feof, _ferror, _fileno, _fflush .import return0 - .import __errno .importzp ptr1 .include "_file.inc" diff --git a/libsrc/common/maperrno.s b/libsrc/common/maperrno.s index 8cac3f1e5..528888e7b 100644 --- a/libsrc/common/maperrno.s +++ b/libsrc/common/maperrno.s @@ -5,10 +5,7 @@ ; /* Map an OS error to a system independent error code */ ; - .export __maperrno - .import __errno - .import __oserror - .import __osmaperrno + .include "errno.inc" .code diff --git a/libsrc/common/oserrcheck.s b/libsrc/common/oserrcheck.s index ba9ba7be2..bd5fa98a8 100644 --- a/libsrc/common/oserrcheck.s +++ b/libsrc/common/oserrcheck.s @@ -10,9 +10,8 @@ ; .export oserrcheck - .import __oserror - .import __osmaperrno - .import __errno + + .include "errno.inc" .proc oserrcheck @@ -32,4 +31,4 @@ ok: tax ; Make high byte also zero .endproc - + diff --git a/libsrc/common/time.s b/libsrc/common/time.s index 1f032ec31..9220b7f19 100644 --- a/libsrc/common/time.s +++ b/libsrc/common/time.s @@ -7,7 +7,6 @@ .export _time .import __systime - .import __errno .importzp ptr1, sreg, tmp1 .include "errno.inc"