mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-08 08:30:47 -09:00
package/libcddb: Fix build with gcc-14
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>
This commit is contained in:
committed by
Julien Olivain
parent
dcf9df16d8
commit
f1b4657bc0
17
package/libcddb/0001-gcc15.patch
Normal file
17
package/libcddb/0001-gcc15.patch
Normal file
@@ -0,0 +1,17 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user