mirror of
https://github.com/openbsd/ports.git
synced 2026-06-17 23:13:55 +02:00
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:
@@ -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;
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user