From 2deed862b5b9e0256e26c6449450c6819a91bf1c Mon Sep 17 00:00:00 2001 From: tb Date: Wed, 20 May 2026 22:53:08 +0000 Subject: [PATCH] comms/x3270: fix -Wincompatible-pointer-types (socklen_t vs size_t) --- comms/x3270/Makefile | 2 +- comms/x3270/patches/patch-macros_c | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 comms/x3270/patches/patch-macros_c diff --git a/comms/x3270/Makefile b/comms/x3270/Makefile index 31bb1a1fe50..bc1cba62922 100644 --- a/comms/x3270/Makefile +++ b/comms/x3270/Makefile @@ -1,7 +1,7 @@ COMMENT= IBM 3270 terminal emulator for the X Window System DISTNAME= x3270-3.3.6 -REVISION= 5 +REVISION= 6 CATEGORIES= comms HOMEPAGE= http://x3270.bgp.nu/ diff --git a/comms/x3270/patches/patch-macros_c b/comms/x3270/patches/patch-macros_c new file mode 100644 index 00000000000..aca0a47b2f2 --- /dev/null +++ b/comms/x3270/patches/patch-macros_c @@ -0,0 +1,14 @@ +macros.c:652:50: error: incompatible pointer types passing 'size_t *' (aka 'unsigned long *') to parameter of type 'socklen_t *' (aka 'unsigned int *') [-Wincompatible-pointer-types] + +Index: macros.c +--- macros.c.orig ++++ macros.c +@@ -643,7 +643,7 @@ socket_connection(void) + { + int fd; + struct sockaddr_un ssun; +- size_t len = sizeof(ssun); ++ socklen_t len = sizeof(ssun); + sms_t *s; + + /* Accept the connection. */