File: gcc15.patch

package info (click to toggle)
force-ip-protocol 0.2.0-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 168 kB
  • sloc: sh: 30; ansic: 25; makefile: 10
file content (14 lines) | stat: -rw-r--r-- 728 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Description: make it compile with gcc15
Index: force-ip-protocol/force-ip-protocol-ipv4-or-ipv6.c
===================================================================
--- force-ip-protocol.orig/force-ip-protocol-ipv4-or-ipv6.c	2025-09-07 00:21:18.790851552 +0200
+++ force-ip-protocol/force-ip-protocol-ipv4-or-ipv6.c	2025-09-07 00:36:13.115362262 +0200
@@ -34,7 +34,7 @@
 int getaddrinfo(const char *hostname, const char *servname,
 		const struct addrinfo *hints, struct addrinfo **res)
 {
-	int (*getaddrinfo_org)();
+	int (*getaddrinfo_org)(const char *, const char *, const struct addrinfo *, struct addrinfo **);
 	struct addrinfo *hints2 = (struct addrinfo *) hints;
 
 	getaddrinfo_org = dlsym(RTLD_NEXT, "getaddrinfo");