summaryrefslogtreecommitdiff
path: root/libio/libio.h
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1997-11-26 23:54:30 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1997-11-26 23:54:30 +0000
commit3b2b21b8966b65266b48a979f1f5c9225adb11c9 (patch)
treeecb3a1ad37276540bbbf5b02dcf332f047b5bc19 /libio/libio.h
parent4aab7421b6cc75cf799588557d75eceaf1320b29 (diff)
downloadgcc-3b2b21b8966b65266b48a979f1f5c9225adb11c9.tar.gz
* configure.in (target frags): Add powerpc*-linux-gnulibc1.
(stdio-lock): Similarly. * configure.in (target frags): Add alpha*-linux-gnulibc1. (pic frags): Its alpha*- not alpha-. (stdio-lock): Kill everything. Add alpha*-linux-gnulibc1. * libio.h: Check __GLIBC_MINOR__ to find stdio-lock.h. If not _IO_MTSAFE_IO & GLIBC, make sure the lock pointer is still there. * libioP.h: Check __GLIBC_MINOR__ to find libc-lock.h. * config/linuxaxp1-libc-lock.h: New file. * config/linuxaxp1-stdio-lock.h: New file. * config/linuxaxp1.mt: New file. * gen-params (va_list): Check for and use __gnuc_va_list. (NULL): Work around some linux kernel headers and redefine NULL. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@16769 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libio/libio.h')
-rw-r--r--libio/libio.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/libio/libio.h b/libio/libio.h
index eeee6ceeb0b..b7f8af7c791 100644
--- a/libio/libio.h
+++ b/libio/libio.h
@@ -150,23 +150,25 @@ struct _IO_jump_t; struct _IO_FILE;
/* Handle lock. */
#ifdef _IO_MTSAFE_IO
# if defined __GLIBC__ && __GLIBC__ >= 2
-# include <bits/stdio-lock.h>
+# if __GLIBC_MINOR__ > 0
+# include <bits/stdio-lock.h>
+# else
+# include <stdio-lock.h>
+# endif
# define _IO_LOCK_T _IO_lock_t *
# else
/*# include <comthread.h>*/
# endif
#else
-/* XXX This will go away as soon as comthread is finished. */
-# if defined __GLIBC__ && __GLIBC__ >= 2
+# if defined(__GLIBC__) && __GLIBC__ >= 2
+ typedef void _IO_lock_t;
# define _IO_LOCK_T void *
# else
# ifdef __linux__
-struct _IO_lock_t {
- void *ptr;
- short int field1;
- short int field2;
-};
+ 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;
# endif
# endif
#endif