pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg/59002: Bootstrapping pkgsrc on HP-UX 11.11/PA-RISC fails due to lack of stdint.h
The following reply was made to PR pkg/59002; it has been noted by GNATS.
From: Taylor R Campbell <campbell%mumble.net@localhost>
To: thomholwerda%osnews.com@localhost
Cc: gnats-bugs%NetBSD.org@localhost, pkgsrc-bugs%NetBSD.org@localhost
Subject: Re: pkg/59002: Bootstrapping pkgsrc on HP-UX 11.11/PA-RISC fails due to lack of stdint.h
Date: Fri, 17 Jan 2025 15:15:40 +0000
This is a multi-part message in MIME format.
--=_Jk88w0qeZbZBxabcXkD5GbHSqAbVNpLw
Can you please try the attached patch?
--=_Jk88w0qeZbZBxabcXkD5GbHSqAbVNpLw
Content-Type: text/plain; charset="ISO-8859-1"; name="pr59002-nawkc89"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment; filename="pr59002-nawkc89.patch"
>From 8b26da34e8f2b100fe26b72d910d5b530f7de236 Mon Sep 17 00:00:00 2001
From: Taylor R Campbell <riastradh%NetBSD.org@localhost>
Date: Fri, 17 Jan 2025 15:13:40 +0000
Subject: [PATCH] lang/nawk: Provide compatibility with pre-C99 compilers.
No change to post-C99 compilers -- change is conditional on
__STDC_VERSION__ predating the C99 value.
PR pkg/59002: Bootstrapping pkgsrc on HP-UX 11.11/PA-RISC fails due
to lack of stdint.h
---
lang/nawk/files/awk.h | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/lang/nawk/files/awk.h b/lang/nawk/files/awk.h
index ccd16c906f3a..d6dd0f160d9f 100644
--- a/lang/nawk/files/awk.h
+++ b/lang/nawk/files/awk.h
@@ -23,8 +23,17 @@ THIS SOFTWARE.
****************************************************************/
=20
#include <assert.h>
+#if __STDC_VERSION__ < 199901L
+typedef long intptr_t;
+typedef int bool;
+enum {
+ false =3D 0,
+ true =3D 1,
+};
+#else
#include <stdint.h>
#include <stdbool.h>
+#endif
#if __STDC_VERSION__ <=3D 199901L
#define noreturn
#else
--=_Jk88w0qeZbZBxabcXkD5GbHSqAbVNpLw--
Home |
Main Index |
Thread Index |
Old Index