]> gcc.gnu.org Git - gcc.git/commitdiff
Handle __set_errno correctly.
authorUlrich Drepper <drepper@cygnus.com>
Wed, 17 Sep 1997 00:54:03 +0000 (00:54 +0000)
committerUlrich Drepper <drepper@gcc.gnu.org>
Wed, 17 Sep 1997 00:54:03 +0000 (00:54 +0000)
From-SVN: r15502

libio/ChangeLog
libio/libioP.h

index b05d4ea94da2a7ef2c769aedb69dc4cda455fa85..d85c970ad830ea8281de9d0e89707cc4ea6ea799 100644 (file)
@@ -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.
index 8ea67defbe23975309ec69b464d744da262f3cf3..2337071d396ba5886e4ba2f47eb74b9fa1f3afc0 100644 (file)
@@ -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
This page took 0.063638 seconds and 5 git commands to generate.