summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn David Anglin <danglin@gcc.gnu.org>2023-04-05 18:35:38 +0000
committerJohn David Anglin <danglin@gcc.gnu.org>2023-04-05 18:35:38 +0000
commite9327e8584b2d90d9fb6f489b6e446dccd1cd5da (patch)
treede33db4d9f29beea4e10931a8f4a4cce66f9cb1e
parent21a171bcb24240ecab860dddbcd89da6fe42aeff (diff)
downloadglibc-e9327e8584b2d90d9fb6f489b6e446dccd1cd5da.tar.gz
hppa: Revise __TIMESIZE define to use __WORDSIZE
Handle both 32 and 64-bit ABIs. Signed-off-by: John David Anglin <dave.anglin@bell.net>
-rw-r--r--sysdeps/unix/sysv/linux/hppa/bits/timesize.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/hppa/bits/timesize.h b/sysdeps/unix/sysv/linux/hppa/bits/timesize.h
index 316a9c1ce6..cbceeb4a29 100644
--- a/sysdeps/unix/sysv/linux/hppa/bits/timesize.h
+++ b/sysdeps/unix/sysv/linux/hppa/bits/timesize.h
@@ -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