changeset 13351:698fe63084d3

declare modify_ldt with syscall3 macro for older glibcs patch by Mikulas Patocka <mikulas at artax.karlin.mff.cuni.cz>
author faust3
date Thu, 16 Sep 2004 07:58:19 +0000
parents dab72e81d849
children 166a12bd5470
files loader/ldt_keeper.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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