# HG changeset patch # User faust3 # Date 1095321499 0 # Node ID 698fe63084d36fcf82a94255bc6c50a9ab6847d6 # Parent dab72e81d849bcf01dcd3f2275543069d8bb119c declare modify_ldt with syscall3 macro for older glibcs patch by Mikulas Patocka diff -r dab72e81d849 -r 698fe63084d3 loader/ldt_keeper.c --- a/loader/ldt_keeper.c Wed Sep 15 21:58:21 2004 +0000 +++ b/loader/ldt_keeper.c Thu Sep 16 07:58:19 2004 +0000 @@ -33,7 +33,12 @@ #ifdef __cplusplus extern "C" { #endif +/// declare modify_ldt with the _syscall3 macro for older glibcs +#if defined(__GLIBC__) && (__GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR == 0)) +_syscall3( int, modify_ldt, int, func, void *, ptr, unsigned long, bytecount ); +#else int modify_ldt(int func, void *ptr, unsigned long bytecount); +#endif #ifdef __cplusplus } #endif