mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
libcddb: fix build with gcc14
This commit is contained in:
parent
1bfa41d53a
commit
eeae3026d1
1 changed files with 13 additions and 0 deletions
13
srcpkgs/libcddb/patches/gcc14.patch
Normal file
13
srcpkgs/libcddb/patches/gcc14.patch
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
Source: https://src.fedoraproject.org/rpms/libcddb/blob/f42/f/pointer-types.patch
|
||||||
|
|
||||||
|
--- a/lib/cddb_net.c 2024-02-01 13:39:55.794671164 -0600
|
||||||
|
+++ b/lib/cddb_net.c 2024-02-01 13:40:50.551398466 -0600
|
||||||
|
@@ -329,7 +329,7 @@
|
||||||
|
default:
|
||||||
|
/* we got connected, check error condition */
|
||||||
|
l = sizeof(rv);
|
||||||
|
- getsockopt(sockfd, SOL_SOCKET, SO_ERROR, &rv, &l);
|
||||||
|
+ getsockopt(sockfd, SOL_SOCKET, SO_ERROR, &rv, (socklen_t * restrict)&l);
|
||||||
|
if (rv) {
|
||||||
|
/* something went wrong, simulate normal connect behaviour */
|
||||||
|
errno = rv;
|
Loading…
Add table
Reference in a new issue