diff options
-rw-r--r-- | loader/ldt_keeper.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/loader/ldt_keeper.c b/loader/ldt_keeper.c index 0c8cb326ca..5b33d51ce3 100644 --- a/loader/ldt_keeper.c +++ b/loader/ldt_keeper.c @@ -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 |