Skip to content

Commit 43b0716

Browse files
committed
heyu: Fix build with recent GCC.
1 parent dd3a0b8 commit 43b0716

7 files changed

Lines changed: 85 additions & 3 deletions

File tree

misc/heyu/Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $NetBSD: Makefile,v 1.17 2020/01/26 17:31:43 rillig Exp $
1+
# $NetBSD: Makefile,v 1.18 2026/03/19 14:55:20 nia Exp $
22
#
33

44
DISTNAME= heyu-1.35
@@ -22,6 +22,8 @@ INSTALL_MAKE_FLAGS+= BIN=${DESTDIR}${PREFIX}/bin
2222
INSTALL_MAKE_FLAGS+= MAN=${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
2323
INSTALL_MAKE_FLAGS+= MAN5=${DESTDIR}${PREFIX}/${PKGMANDIR}/man5
2424

25+
FORCE_C_STD= gnu89
26+
2527
REPLACE_SH+= makesched
2628
USE_TOOLS+= sh:run
2729

misc/heyu/distinfo

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
$NetBSD: distinfo,v 1.13 2021/10/26 10:59:05 nia Exp $
1+
$NetBSD: distinfo,v 1.14 2026/03/19 14:55:20 nia Exp $
22

33
BLAKE2s (heyu-1.35/x10_heyu.tgz) = 1f070f0cd29faeacb2749d22a9693dc54d260dbbf2d453f331703fe101289dec
44
SHA512 (heyu-1.35/x10_heyu.tgz) = 1e02e8aecbd644c683681c4dc05d2942b43fc60a8d6e4b51923bf1f070d2ee98d71cbb4a80dcf0b37fbc52115ef40105fa801ed74fdcd906e269a785a79a8ed4
@@ -10,4 +10,8 @@ SHA1 (patch-ad) = 976436d32022f9eaa68b4661b6ee7025d9bb5f1c
1010
SHA1 (patch-ae) = 376c89f594b1ee1b06759b3f3b813a92f74ae1ee
1111
SHA1 (patch-af) = 05586be9010ec36bbde847de13d2d112b5d1501e
1212
SHA1 (patch-ag) = a8e9d04fea0e1d79bc9ee7999d32e8df9cba1e71
13-
SHA1 (patch-ah) = 70a99172f97034860045843316229108e04dff89
13+
SHA1 (patch-date.c) = 69241ecc38034b341632065983bfe157b4c17b1b
14+
SHA1 (patch-info.c) = 674267f0c753a20a1b2c081e198b396004f5bbc4
15+
SHA1 (patch-preset.c) = bc848380acf22822d61278d4924a825a5b9dcd77
16+
SHA1 (patch-reset.c) = 7b393021e07beeb9d0ee2883498fdf2c3394aec6
17+
SHA1 (patch-turn.c) = d3a242a8322127cbd6dae2f4eaea2c1dd35a8a9c

misc/heyu/patches/patch-date.c

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
$NetBSD: patch-date.c,v 1.1 2026/03/19 14:55:21 nia Exp $
2+
3+
Modern GCC no longer likes implicit int. ANSIfy.
4+
5+
--- date.c.orig 2026-03-19 14:43:58.416133889 +0000
6+
+++ date.c
7+
@@ -39,8 +39,7 @@ extern int
8+
9+
/* ARGSUSED */
10+
11+
-int c_date(argc, argv)
12+
-char *argv[];
13+
+int c_date(int argc, char *argv[])
14+
{
15+
int today;
16+
struct tm *tp;

misc/heyu/patches/patch-info.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
$NetBSD: patch-info.c,v 1.1 2026/03/19 14:55:21 nia Exp $
2+
3+
Modern GCC no longer likes implicit int. ANSIfy.
4+
5+
--- info.c.orig 2026-03-19 14:43:30.550877756 +0000
6+
+++ info.c
7+
@@ -35,4 +35,3 @@ extern char *wdays[];
8+
9+
-int c_info(argc, argv)
10+
-char *argv[];
11+
+int c_info(int argc, char *argv[])
12+
{

misc/heyu/patches/patch-preset.c

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
$NetBSD: patch-preset.c,v 1.1 2026/03/19 14:55:21 nia Exp $
2+
3+
Modern GCC no longer likes implicit int. ANSIfy.
4+
5+
--- preset.c.orig 2026-03-19 14:44:51.705585693 +0000
6+
+++ preset.c
7+
@@ -46,8 +46,7 @@ unsigned char presetmap[]=
8+
9+
10+
11+
-int c_preset(argc, argv)
12+
-char *argv[];
13+
+int c_preset(int argc, char *argv[])
14+
{
15+
register int n;
16+
unsigned int hcode, unit, unitx10, bits;

misc/heyu/patches/patch-reset.c

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
$NetBSD: patch-reset.c,v 1.1 2026/03/19 14:55:21 nia Exp $
2+
3+
Modern GCC no longer likes implicit int. ANSIfy.
4+
5+
--- reset.c.orig 2026-03-19 14:44:36.909408043 +0000
6+
+++ reset.c
7+
@@ -22,8 +22,7 @@ extern int tty;
8+
9+
/* ARGSUSED */
10+
11+
-void c_reset(argc, argv)
12+
-char *argv[];
13+
+void c_reset(int argc, char *argv[])
14+
{
15+
int hletter;
16+
int oldcode;

misc/heyu/patches/patch-turn.c

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
$NetBSD: patch-turn.c,v 1.1 2026/03/19 14:55:21 nia Exp $
2+
3+
Modern GCC no longer likes implicit int. ANSIfy.
4+
5+
--- turn.c.orig 2026-03-19 14:44:28.259446048 +0000
6+
+++ turn.c
7+
@@ -33,8 +33,7 @@ extern int usage(), dimstate(), xwrite()
8+
extern void parse_unit();
9+
extern unsigned int getunits();
10+
11+
-int c_turn(argc, argv)
12+
-char *argv[];
13+
+int c_turn(int argc, char *argv[])
14+
{
15+
register int n, x;
16+
unsigned int hcode, dim, bits, unit;

0 commit comments

Comments
 (0)