diff options
author | drepper <drepper@138bc75d-0d04-0410-961f-82ee72b054a4> | 1997-09-17 00:54:03 +0000 |
---|---|---|
committer | drepper <drepper@138bc75d-0d04-0410-961f-82ee72b054a4> | 1997-09-17 00:54:03 +0000 |
commit | a98f6e4963386cf899322c0ee10f6cf695b9fe52 (patch) | |
tree | 427034573144dc03909eddca21eeccf83dae292e /libio | |
parent | 5c6d1e643aedf3dbca2d0a14356b6ffcd8a2ae9b (diff) |
Handle __set_errno correctly.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@15502 138bc75d-0d04-0410-961f-82ee72b054a4
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 b05d4ea94da..d85c970ad83 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 8ea67defbe2..2337071d396 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 |