From 5ae9a80ae180a326c484c58c6216f0112fa67723 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 17 Sep 1997 00:54:03 +0000 Subject: Handle __set_errno correctly. From-SVN: r15502 --- libio/ChangeLog | 5 +++++ libio/libioP.h | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'libio') 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 + + * 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 * 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 -/* 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 #else -- cgit v1.1