hppa: Revise __TIMESIZE define to use __WORDSIZE
authorJohn David Anglin <danglin@gcc.gnu.org>
Wed, 5 Apr 2023 18:35:38 +0000 (18:35 +0000)
committerJohn David Anglin <danglin@gcc.gnu.org>
Wed, 5 Apr 2023 18:35:38 +0000 (18:35 +0000)
Handle both 32 and 64-bit ABIs.

Signed-off-by: John David Anglin <dave.anglin@bell.net>
sysdeps/unix/sysv/linux/hppa/bits/timesize.h

index 316a9c1ce6fc0eb0821922a448b2153c3d68afd6..cbceeb4a29088436e389d4594731bdd8e5255668 100644 (file)
@@ -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