git: 54040747a96e - 2026Q2 - ftp/wmget: fix build on FreeBSD 15.1
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 22 Jun 2026 09:32:24 UTC
The branch 2026Q2 has been updated by fuz:
URL: https://cgit.FreeBSD.org/ports/commit/?id=54040747a96e18406bdbd17395f36ace33d49fb8
commit 54040747a96e18406bdbd17395f36ace33d49fb8
Author: Robert Clausecker <fuz@FreeBSD.org>
AuthorDate: 2026-06-21 21:52:33 +0000
Commit: Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2026-06-22 09:32:05 +0000
ftp/wmget: fix build on FreeBSD 15.1
CHAR_WIDTH is now a macro defined by <limits.h> (from C23).
MFH: 2026Q2
(cherry picked from commit 67b45444fd7404e48e070f680b72e58162a4446a)
---
ftp/wmget/files/patch-server.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/ftp/wmget/files/patch-server.c b/ftp/wmget/files/patch-server.c
new file mode 100644
index 000000000000..4b71c08aa230
--- /dev/null
+++ b/ftp/wmget/files/patch-server.c
@@ -0,0 +1,10 @@
+--- server.c.orig 2026-06-21 21:51:43 UTC
++++ server.c
+@@ -64,6 +64,7 @@ static ServerConfig config;
+ * Call init_font() to set up the CHAR_X and CHAR_Y tables, then
+ * draw_string() to put text on the xpm.
+ */
++#undef CHAR_WIDTH
+ static const int CHAR_WIDTH = 6;
+ static const int CHAR_HEIGHT = 7;
+