projects
/
platform
/
upstream
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be211e0
)
tst-socket-timestamp-compat.c: Check __TIMESIZE [BZ #28837]
author
H.J. Lu
<hjl.tools@gmail.com>
Sat, 29 Jan 2022 13:22:31 +0000
(
05:22
-0800)
committer
H.J. Lu
<hjl.tools@gmail.com>
Sat, 29 Jan 2022 14:57:07 +0000
(06:57 -0800)
time_t size is defined by __TIMESIZE, not __WORDSIZE. Check __TIMESIZE,
instead of __WORDSIZE, for time_t size. This fixes BZ #28837.
sysdeps/unix/sysv/linux/tst-socket-timestamp-compat.c
patch
|
blob
|
history
diff --git
a/sysdeps/unix/sysv/linux/tst-socket-timestamp-compat.c
b/sysdeps/unix/sysv/linux/tst-socket-timestamp-compat.c
index
de261da
..
0ff1a21
100644
(file)
--- a/
sysdeps/unix/sysv/linux/tst-socket-timestamp-compat.c
+++ b/
sysdeps/unix/sysv/linux/tst-socket-timestamp-compat.c
@@
-237,7
+237,7
@@
do_test (void)
{
/* This test only make sense for ABIs that support 32 bit time_t socket
timestampss. */
- if (sizeof (time_t) > 4 && __
WORD
SIZE == 64)
+ if (sizeof (time_t) > 4 && __
TIME
SIZE == 64)
return 0;
srv = xsocket (AF_INET, SOCK_DGRAM, 0);