diff options
Diffstat (limited to 'sysdeps/nptl/stdio-lock.h')
-rw-r--r-- | sysdeps/nptl/stdio-lock.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sysdeps/nptl/stdio-lock.h b/sysdeps/nptl/stdio-lock.h index d3a9092459..5b9782452f 100644 --- a/sysdeps/nptl/stdio-lock.h +++ b/sysdeps/nptl/stdio-lock.h @@ -1,5 +1,5 @@ /* Thread package specific definitions of stream lock type. NPTL version. - Copyright (C) 2000-2016 Free Software Foundation, Inc. + Copyright (C) 2000-2018 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -27,6 +27,7 @@ #define _IO_lock_inexpensive 1 typedef struct { int lock; int cnt; void *owner; } _IO_lock_t; +#define _IO_lock_t_defined 1 #define _IO_lock_initializer { LLL_LOCK_INITIALIZER, 0, NULL } @@ -89,13 +90,13 @@ typedef struct { int lock; int cnt; void *owner; } _IO_lock_t; # ifdef __EXCEPTIONS # define _IO_acquire_lock(_fp) \ do { \ - _IO_FILE *_IO_acquire_lock_file \ + FILE *_IO_acquire_lock_file \ __attribute__((cleanup (_IO_acquire_lock_fct))) \ = (_fp); \ _IO_flockfile (_IO_acquire_lock_file); # define _IO_acquire_lock_clear_flags2(_fp) \ do { \ - _IO_FILE *_IO_acquire_lock_file \ + FILE *_IO_acquire_lock_file \ __attribute__((cleanup (_IO_acquire_lock_clear_flags2_fct))) \ = (_fp); \ _IO_flockfile (_IO_acquire_lock_file); |