void-packages/srcpkgs/kodi/patches/fix-musl-x86.patch
2016-03-25 19:13:06 +01:00

19 lines
727 B
Diff

--- a/xbmc/cores/DllLoader/ldt_keeper.c.orig 2016-03-25 17:39:06.790371676 +0100
+++ b/xbmc/cores/DllLoader/ldt_keeper.c 2016-03-25 17:38:24.376370166 +0100
@@ -31,6 +31,7 @@
#include <sys/types.h>
#include <stdio.h>
#include <unistd.h>
+#include <syscall.h>
#include "mmap_anon.h"
#if defined( __linux__ ) && !defined(__powerpc__)
#include <asm/unistd.h>
@@ -202,7 +203,7 @@ ldt_fs_t* Setup_LDT_Keeper(void)
array.limit_in_pages = 0;
#ifdef __linux__
/* ret=LDT_Modify(0x1, &array, sizeof(struct modify_ldt_ldt_s)); */
- ret = modify_ldt(0x1, &array, sizeof(struct modify_ldt_ldt_s));
+ ret = syscall(SYS_modify_ldt, 0x1, &array, sizeof(struct modify_ldt_ldt_s));
if (ret < 0)
{
perror("install_fs");