[Mplayer-cvslog] CVS: main/loader ldt_keeper.c,1.12,1.13

Sascha Sommer CVS syncmail at mplayerhq.hu
Thu Sep 16 09:58:21 CEST 2004


CVS change done by Sascha Sommer CVS

Update of /cvsroot/mplayer/main/loader
In directory mail:/var2/tmp/cvs-serv30396/loader

Modified Files:
	ldt_keeper.c 
Log Message:
declare modify_ldt with syscall3 macro for older glibcs patch by Mikulas Patocka <mikulas at artax.karlin.mff.cuni.cz>

Index: ldt_keeper.c
===================================================================
RCS file: /cvsroot/mplayer/main/loader/ldt_keeper.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- ldt_keeper.c	6 Sep 2003 00:14:08 -0000	1.12
+++ ldt_keeper.c	16 Sep 2004 07:58:19 -0000	1.13
@@ -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




More information about the MPlayer-cvslog mailing list