summaryrefslogtreecommitdiffstats
path: root/loader
diff options
context:
space:
mode:
authorfaust3 <faust3@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-09-16 07:58:19 +0000
committerfaust3 <faust3@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-09-16 07:58:19 +0000
commit56f0d012e3a0088d4528b083d71ba2da84c746fc (patch)
tree224616482fca5565ef33ff9b386843f0fd191872 /loader
parentd77795cc390a744c17501f0cdae680d1b032b4b5 (diff)
downloadmpv-56f0d012e3a0088d4528b083d71ba2da84c746fc.tar.bz2
mpv-56f0d012e3a0088d4528b083d71ba2da84c746fc.tar.xz
declare modify_ldt with syscall3 macro for older glibcs patch by Mikulas Patocka <mikulas at artax.karlin.mff.cuni.cz>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13352 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'loader')
-rw-r--r--loader/ldt_keeper.c5
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