summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCristian Othón Martínez Vera <cfuga@cfuga.mx>2025-02-05 17:00:41 -0600
committerBernard Cafarelli <voyageur@gentoo.org>2025-02-08 12:20:45 +0100
commitc70aa96384207367b8a6d876b574c64021da4b67 (patch)
treee548031361dffb5e4c889fe1736541ed7484e743 /net-misc/nx/files
parentdev-python/executing: Stabilize 2.2.0 ppc64, #949460 (diff)
downloadgentoo-c70aa96384207367b8a6d876b574c64021da4b67.tar.gz
gentoo-c70aa96384207367b8a6d876b574c64021da4b67.tar.bz2
gentoo-c70aa96384207367b8a6d876b574c64021da4b67.zip
net-misc/nx: fix compilation with gcc14 (access.c)
Backport from XOrg. This PR also fixes a small URL typo from my previous patch ;-) Link: https://gitlab.freedesktop.org/xorg/xserver/-/commit/0ddcd8785199c08d9bded3c767a3b1227c670999 Closes: https://bugs.gentoo.org/934131 Signed-off-by: Cristian Othón Martínez Vera <cfuga@cfuga.mx> Closes: https://github.com/gentoo/gentoo/pull/40458 Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org>
Diffstat (limited to 'net-misc/nx/files')
-rw-r--r--net-misc/nx/files/nx-3.5.99.26-gcc14-access.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/net-misc/nx/files/nx-3.5.99.26-gcc14-access.patch b/net-misc/nx/files/nx-3.5.99.26-gcc14-access.patch
new file mode 100644
index 000000000000..44afd9232434
--- /dev/null
+++ b/net-misc/nx/files/nx-3.5.99.26-gcc14-access.patch
@@ -0,0 +1,28 @@
+Bugs: https://bugs.gentoo.org/934131
+https://gitlab.freedesktop.org/xorg/xserver/-/commit/0ddcd8785199c08d9bded3c767a3b1227c670999
+
+Backport from XOrg server:
+
+ commit 0ddcd8785199c08d9bded3c767a3b1227c670999
+ Author: Joaquim Monteiro <joaquim.monteiro@protonmail.com>
+ Date: Sun, 23 Jun 2024 21:17:25 +0100
+
+ [PATCH 1/2] os: Fix assignment with incompatible pointer type
+
+ struct hostent->h_addr_list is of type char**, not const char**.
+ GCC considers this an error when in C99 mode or later.
+
+ Signed-off-by: Joaquim Monteiro <joaquim.monteiro@protonmail.com>
+ Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1572>
+
+--- a/nx-X11/programs/Xserver/os/access.c
++++ b/nx-X11/programs/Xserver/os/access.c
+@@ -1941,7 +1941,7 @@
+ char hostname[SI_HOSTNAME_MAXLEN];
+ int f, hostaddrlen;
+ void * hostaddr;
+- const char **addrlist;
++ char **addrlist;
+
+ if (siAddrLen >= sizeof(hostname))
+ return FALSE;