summaryrefslogtreecommitdiff
path: root/media-libs/libcddb/files/libcddb-1.3.2-c99.patch
diff options
context:
space:
mode:
Diffstat (limited to 'media-libs/libcddb/files/libcddb-1.3.2-c99.patch')
-rw-r--r--media-libs/libcddb/files/libcddb-1.3.2-c99.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/media-libs/libcddb/files/libcddb-1.3.2-c99.patch b/media-libs/libcddb/files/libcddb-1.3.2-c99.patch
new file mode 100644
index 000000000000..20f7b3d8ea3f
--- /dev/null
+++ b/media-libs/libcddb/files/libcddb-1.3.2-c99.patch
@@ -0,0 +1,14 @@
+https://bugs.gentoo.org/919280
+https://src.fedoraproject.org/rpms/libcddb/blob/rawhide/f/pointer-types.patch
+--- a/lib/cddb_net.c
++++ b/lib/cddb_net.c
+@@ -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;
+