summaryrefslogtreecommitdiff
path: root/user/mplayer/ldt.patch
blob: 6ae5456bc73363d88e1dbdca39b04b1ed88b023e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- MPlayer-1.4/loader/ldt_keeper.c.old	2013-03-23 14:48:22.000000000 +0000
+++ MPlayer-1.4/loader/ldt_keeper.c	2020-07-06 21:22:30.344206427 +0000
@@ -214,7 +214,7 @@
     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(__NR_modify_ldt, 0x1, &array, sizeof(struct modify_ldt_ldt_s));
     if(ret<0)
     {
 	perror("install_fs");