void-packages/srcpkgs/xine-lib/patches/fix-i686-musl.patch

30 lines
761 B
Diff

--- contrib/libdha/sysdep/pci_linux.c 2018-01-11 13:49:46.000000000 +0100
+++ contrib/libdha/sysdep/pci_linux.c 2018-03-03 12:38:03.867670134 +0100
@@ -5,8 +5,12 @@
*/
#include <errno.h>
#ifdef __i386__
+#ifdef __GLIBC__
#include <sys/perm.h>
#else
+#define iopl(x) (0)
+#endif
+#else
#ifndef __sparc__
#include <sys/io.h>
#endif
--- src/libw32dll/wine/ldt_keeper.c 2018-01-11 13:49:47.000000000 +0100
+++ src/libw32dll/wine/ldt_keeper.c 2018-03-03 12:44:43.660633403 +0100
@@ -73,7 +73,11 @@
#ifdef __cplusplus
extern "C" {
#endif
+#ifdef __GLIBC__
int modify_ldt(int func, void *ptr, unsigned long bytecount);
+#else
+static int modify_ldt(int func, void *ptr, unsigned long bytecount) { return -ENOSYS; }
+#endif
#ifdef __cplusplus
}
#endif