public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [committed] hppa: Revise  __TIMESIZE define to use __WORDSIZE
@ 2023-04-05 18:40 John David Anglin
  2023-04-05 19:00 ` Adhemerval Zanella Netto
  0 siblings, 1 reply; 3+ messages in thread
From: John David Anglin @ 2023-04-05 18:40 UTC (permalink / raw)
  To: libc-alpha; +Cc: Helge Deller

[-- Attachment #1: Type: text/plain, Size: 701 bytes --]

Committed to master.

Dave
---

hppa: Revise  __TIMESIZE define to use __WORDSIZE

Handle both 32 and 64-bit ABIs.

Signed-off-by: John David Anglin <dave.anglin@bell.net>

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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-04-06 21:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-05 18:40 [committed] hppa: Revise __TIMESIZE define to use __WORDSIZE John David Anglin
2023-04-05 19:00 ` Adhemerval Zanella Netto
2023-04-06 21:11   ` John David Anglin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).