mirror of
git://sourceware.org/git/glibc.git
synced 2025-03-06 20:58:33 +01:00
hurd: Fix __TIMESIZE on x86_64
We had sizeof (time_t) == 8, but __TIMESIZE == 32. Signed-off-by: Sergey Bugaev <bugaevc@gmail.com> Message-Id: <20230519171516.3698754-1-bugaevc@gmail.com>
This commit is contained in:
parent
7b31c02dd2
commit
4d3f846b88
2 changed files with 5 additions and 1 deletions
|
@ -111,6 +111,7 @@ strong_alias (__clock_gettime, __clock_gettime_2);
|
|||
compat_symbol (libc, __clock_gettime_2, clock_gettime, GLIBC_2_2);
|
||||
#endif
|
||||
|
||||
#if __TIMESIZE != 64
|
||||
int
|
||||
__clock_gettime64 (clockid_t clock_id, struct __timespec64 *ts64)
|
||||
{
|
||||
|
@ -124,3 +125,4 @@ __clock_gettime64 (clockid_t clock_id, struct __timespec64 *ts64)
|
|||
return ret;
|
||||
}
|
||||
libc_hidden_def (__clock_gettime64)
|
||||
#endif
|
||||
|
|
|
@ -16,5 +16,7 @@
|
|||
License along with the GNU C Library; if not, see
|
||||
<https://www.gnu.org/licenses/>. */
|
||||
|
||||
#include <bits/wordsize.h>
|
||||
|
||||
/* Size in bits of the 'time_t' type of the default ABI. */
|
||||
#define __TIMESIZE 32
|
||||
#define __TIMESIZE __WORDSIZE
|
||||
|
|
Loading…
Add table
Reference in a new issue