libcddb: fix build with llvm22

switch variable from size_t to socklen_t for use in getsockopt(3) to
appease -Wincompatible-pointer-types
This commit is contained in:
tb
2026-05-19 19:43:24 +00:00
parent dcc4b32ace
commit 0b237dfbf7
3 changed files with 18 additions and 2 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ COMMENT= library to access data on a CDDB server
DISTNAME= libcddb-1.3.2
CATEGORIES= audio devel
SHARED_LIBS += cddb 0.1 # .4.3
REVISION= 1
REVISION= 2
HOMEPAGE= https://libcddb.sourceforge.net/
@@ -0,0 +1,16 @@
Fix build with llvm22:
error: incompatible pointer types passing 'size_t *' (aka 'unsigned long *') to parameter of type 'socklen_t *' (aka 'unsigned int *') [-Wincompatible-pointer-types]
Index: lib/cddb_net.c
--- lib/cddb_net.c.orig
+++ lib/cddb_net.c
@@ -305,7 +305,7 @@ int timeout_connect(int sockfd, const struct sockaddr
int rv;
fd_set wfds;
struct timeval tv;
- size_t l;
+ socklen_t l;
/* set up select time out */
tv.tv_sec = timeout;
+1 -1
View File
@@ -10,7 +10,7 @@ include/cddb/cddb_log.h
include/cddb/cddb_site.h
include/cddb/cddb_track.h
include/cddb/version.h
lib/libcddb.a
@static-lib lib/libcddb.a
lib/libcddb.la
@lib lib/libcddb.so.${LIBcddb_VERSION}
lib/pkgconfig/libcddb.pc