libcddb fail to build with gcc-14 with error:
cddb_net.c: In function 'timeout_connect':
cddb_net.c:328:63: error: passing argument 5 of 'getsockopt' from incompatible pointer type [-Wincompatible-pointer-types]
328 | getsockopt(sockfd, SOL_SOCKET, SO_ERROR, &rv, &l);
| ^~
| |
| size_t * {aka long unsigned int *}
This commit adds a patch to fix the issue.
Fixes:
https://autobuild.buildroot.net/results/723/7236cf5fd4f33aabd3178586f877dff04d754abe/
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
[Julien: add error message in commit log]
Signed-off-by: Julien Olivain <ju.o@free.fr>
(cherry picked from commit f1b4657bc0)
Signed-off-by: Thomas Perale <thomas.perale@mind.be>
18 lines
492 B
Diff
18 lines
492 B
Diff
Fix incorrect type.
|
|
|
|
Upstream: https://sourceforge.net/p/libcddb/patches/9/#b9ea
|
|
|
|
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
|
|
|
|
--- libcddb-1.3.2/lib/cddb_net.c 2009-03-01 03:28:07.000000000 +0000
|
|
+++ libcddb-1.3.2/lib/cddb_net.c 2025-07-03 17:58:30.064232649 +0100
|
|
@@ -305,7 +305,7 @@
|
|
int rv;
|
|
fd_set wfds;
|
|
struct timeval tv;
|
|
- size_t l;
|
|
+ socklen_t l;
|
|
|
|
/* set up select time out */
|
|
tv.tv_sec = timeout;
|