]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libio.h (_IO_LOCK_T): Handle glibc 2 when _IO_MTSAFE_IO is not defined.
authorH.J. Lu <hjl@gnu.ai.mit.edu>
Thu, 23 Oct 1997 01:17:58 +0000 (01:17 +0000)
committerJeff Law <law@gcc.gnu.org>
Thu, 23 Oct 1997 01:17:58 +0000 (19:17 -0600)
        * libio.h (_IO_LOCK_T): Handle glibc 2 when _IO_MTSAFE_IO is
        not defined.

        * iovsscanf.c (vsscanf): Make it weak alias of _IO_vsscanf if
        __linux__ is defined instead of __ELF__

        * config/linuxlibc1.mt (USER_INCLUDES): Add libio.h.
OK'd by Ulrich.

From-SVN: r16151

libio/ChangeLog
libio/config/linuxlibc1.mt
libio/iovsscanf.c
libio/libio.h

index 0ee838da096b73f0e60bf01fc0056a83588c5177..6da6b9c5b911688f325d5f8b258fabf09d2d1e8d 100644 (file)
@@ -1,3 +1,13 @@
+Wed Oct 22 19:19:32 1997  H.J. Lu  (hjl@gnu.ai.mit.edu)
+
+       * libio.h (_IO_LOCK_T): Handle glibc 2 when _IO_MTSAFE_IO is
+       not defined.
+
+       * iovsscanf.c (vsscanf): Make it weak alias of _IO_vsscanf if
+       __linux__ is defined instead of __ELF__
+
+       * config/linuxlibc1.mt (USER_INCLUDES): Add libio.h.
+
 1997-10-15  Ulrich Drepper  <drepper@cygnus.com>
 
        * configure.in: Create compatibility code in bits/libc-lock.h file.
index 378a9c92ef04f1659bc1c613523d069474cd71f0..09c4c83804e95b94fd6c5f8054d1b8cb870fbd56 100644 (file)
@@ -20,7 +20,7 @@ STDIO_OBJECTS=
 USER_INCLUDES=PlotFile.h SFile.h builtinbuf.h editbuf.h fstream.h \
        indstream.h iomanip.h iostream.h istream.h ostream.h \
        parsestream.h pfstream.h procbuf.h stdiostream.h stream.h \
-       streambuf.h strfile.h strstream.h
+       streambuf.h strfile.h strstream.h libio.h
 
 # A bad kludge
 MT_CFLAGS=-D_G_HAVE_MMAP
index 0db195c8c586cb9dd7c49dfe70b5fe87365050f6..beb0bc3a6b22eb4f3801bda0094fa46ac9f7a509 100644 (file)
@@ -52,7 +52,7 @@ _IO_vsscanf (string, format, args)
 weak_alias (_IO_vsscanf, __vsscanf)
 weak_alias (_IO_vsscanf, vsscanf)
 #else
-#ifdef __ELF__
+#ifdef __linux__
 #pragma weak vsscanf = _IO_vsscanf
 #endif
 #endif
index 98d98c3249b4d8c5746da9af24a0b2b3126ccb99..eeee6ceeb0bec1778568a1e1c2be5ddbf59693c4 100644 (file)
@@ -157,15 +157,17 @@ struct _IO_jump_t;  struct _IO_FILE;
 # endif
 #else
 /* XXX This will go away as soon as comthread is finished.  */
-# ifdef __linux__
+# if defined __GLIBC__ && __GLIBC__ >= 2
+#  define _IO_LOCK_T void *
+# else
+#  ifdef __linux__
 struct _IO_lock_t {
   void *ptr;
   short int field1;
   short int field2;
 };
-#  define _IO_LOCK_T struct _IO_lock_t
-# else
-typedef void _IO_lock_t;
+#   define _IO_LOCK_T struct _IO_lock_t
+#  endif
 # endif
 #endif