diff options
author | Ulrich Drepper <drepper@cygnus.com> | 1997-09-17 00:54:03 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@gcc.gnu.org> | 1997-09-17 00:54:03 +0000 |
commit | 5ae9a80ae180a326c484c58c6216f0112fa67723 (patch) | |
tree | 427034573144dc03909eddca21eeccf83dae292e /libio | |
parent | 11dbec668601f70b347acaa7824266baec215995 (diff) | |
download | gcc-5ae9a80ae180a326c484c58c6216f0112fa67723.zip gcc-5ae9a80ae180a326c484c58c6216f0112fa67723.tar.gz gcc-5ae9a80ae180a326c484c58c6216f0112fa67723.tar.bz2 |
Handle __set_errno correctly.
From-SVN: r15502
Diffstat (limited to 'libio')
-rw-r--r-- | libio/ChangeLog | 5 | ||||
-rw-r--r-- | libio/libioP.h | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/libio/ChangeLog b/libio/ChangeLog index b05d4ea..d85c970 100644 --- a/libio/ChangeLog +++ b/libio/ChangeLog @@ -1,3 +1,8 @@ +1997-09-17 02:50 Ulrich Drepper <drepper@cygnus.com> + + * libioP.h: Define __set_errno if not already defined. + * fileops.c: Don't try to define __set_errno, it's already defined. + 1997-09-15 02:37 Ulrich Drepper <drepper@cygnus.com> * config/linux.mt: Rewrite for use with glibc 2. diff --git a/libio/libioP.h b/libio/libioP.h index 8ea67de..2337071 100644 --- a/libio/libioP.h +++ b/libio/libioP.h @@ -24,8 +24,9 @@ General Public License. */ #include <errno.h> -/* This is a hack until Uli gets me the real fix. */ -#define __set_errno(Val) (errno = (Val)) +#ifndef __set_errno +# define __set_errno(Val) errno = (Val) +#endif #if defined __GLIBC__ && __GLIBC__ >= 2 # include <bits/libc-lock.h> #else |