patch-loader_ldt_keeper_c 519 B

1234567891011
  1. --- MPlayer-1.1.1.orig/loader/ldt_keeper.c 2011-05-24 21:51:38.000000000 +0200
  2. +++ MPlayer-1.1.1/loader/ldt_keeper.c 2013-11-14 13:24:09.000000000 +0100
  3. @@ -210,7 +210,7 @@ ldt_fs_t* Setup_LDT_Keeper(void)
  4. array.seg_not_present=0;
  5. array.contents=MODIFY_LDT_CONTENTS_DATA;
  6. array.limit_in_pages=0;
  7. -#ifdef __linux__
  8. +#if defined(__linux__) && (__GLIBC__)
  9. //ret=LDT_Modify(0x1, &array, sizeof(struct modify_ldt_ldt_s));
  10. ret=modify_ldt(0x1, &array, sizeof(struct modify_ldt_ldt_s));
  11. if(ret<0)