diff options
| author | Tulio Magno Quites Machado Filho <tuliom@redhat.com> | 2025-01-30 15:51:01 -0300 |
|---|---|---|
| committer | Tulio Magno Quites Machado Filho <tuliom@redhat.com> | 2025-02-05 16:18:40 -0300 |
| commit | cdb0800022110bc68a033944f09e501be5bd72d7 (patch) | |
| tree | d54f10f1c54a1aa90db8d4ed3a21b92c763e5a39 /libio | |
| parent | 3755ffb665ab544396d871c517a218d863f1cf52 (diff) | |
| download | glibc-cdb0800022110bc68a033944f09e501be5bd72d7.tar.xz glibc-cdb0800022110bc68a033944f09e501be5bd72d7.zip | |
libio: Replace __LP64__ with __WORDSIZE
__LP64__ is a GCC extension and shouldn't be used in an installed
header.
Fixes: 596a61cf6b (libio: Start to return errors when flushing fwrite's buffer [BZ #29459], 2025-01-28)
Reported-by: Florian Weimer <fweimer@redhat.com>
Reviewed-by: Arjun Shankar <arjun@redhat.com>
Diffstat (limited to 'libio')
| -rw-r--r-- | libio/bits/types/struct_FILE.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libio/bits/types/struct_FILE.h b/libio/bits/types/struct_FILE.h index 2012d70681..ac99002ae7 100644 --- a/libio/bits/types/struct_FILE.h +++ b/libio/bits/types/struct_FILE.h @@ -32,6 +32,7 @@ #endif #include <bits/types.h> +#include <bits/wordsize.h> struct _IO_FILE; struct _IO_marker; @@ -97,11 +98,11 @@ struct _IO_FILE_complete void *_freeres_buf; struct _IO_FILE **_prevchain; int _mode; -#ifdef __LP64__ +#if __WORDSIZE == 64 int _unused3; #endif __uint64_t _total_written; -#ifndef __LP64__ +#if __WORDSIZE == 32 int _unused3; #endif /* Make sure we don't get into trouble again. */ |
