mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 14:43:52 +02:00
vlc: fix build with gcc14 and musl
This commit is contained in:
parent
c7135cde2f
commit
ffa86cc960
1 changed files with 30 additions and 0 deletions
30
srcpkgs/vlc/patches/musl.patch
Normal file
30
srcpkgs/vlc/patches/musl.patch
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
diff -rup vlc-3.0.21/modules/access/v4l2/v4l2.h.orig vlc-3.0.21/modules/access/v4l2/v4l2.h
|
||||||
|
--- vlc-3.0.21/modules/access/v4l2/v4l2.h.orig
|
||||||
|
+++ vlc-3.0.21/modules/access/v4l2/v4l2.h
|
||||||
|
@@ -28,7 +28,11 @@
|
||||||
|
/* libv4l2 functions */
|
||||||
|
extern int (*v4l2_fd_open) (int, int);
|
||||||
|
extern int (*v4l2_close) (int);
|
||||||
|
+#if defined(__GLIBC__)
|
||||||
|
extern int (*v4l2_ioctl) (int, unsigned long int, ...);
|
||||||
|
+#else
|
||||||
|
+extern int (*v4l2_ioctl) (int, int, ...);
|
||||||
|
+#endif
|
||||||
|
extern ssize_t (*v4l2_read) (int, void *, size_t);
|
||||||
|
extern void * (*v4l2_mmap) (void *, size_t, int, int, int, int64_t);
|
||||||
|
extern int (*v4l2_munmap) (void *, size_t);
|
||||||
|
diff -rup vlc-3.0.21/modules/access/v4l2/lib.c.orig vlc-3.0.21/modules/access/v4l2/lib.c
|
||||||
|
--- vlc-3.0.21/modules/access/v4l2/lib.c.orig
|
||||||
|
+++ vlc-3.0.21/modules/access/v4l2/lib.c
|
||||||
|
@@ -49,7 +49,11 @@ int (*v4l2_fd_open) (int, int) = fd_open
|
||||||
|
//int (*v4l2_open) (const char *, int, ...) = open;
|
||||||
|
//int (*v4l2_dup) (const char *, int, ...) = dup;
|
||||||
|
int (*v4l2_close) (int) = close;
|
||||||
|
+#if defined(__GLIBC__)
|
||||||
|
int (*v4l2_ioctl) (int, unsigned long int, ...) = ioctl;
|
||||||
|
+#else
|
||||||
|
+int (*v4l2_ioctl) (int, int, ...) = ioctl;
|
||||||
|
+#endif
|
||||||
|
ssize_t (*v4l2_read) (int, void *, size_t) = read;
|
||||||
|
//ssize_t (*v4l2_write) (int, const void *, size_t) = write;
|
||||||
|
void * (*v4l2_mmap) (void *, size_t, int, int, int, int64_t) = mmap;
|
Loading…
Add table
Reference in a new issue