Skip to content
This repository has been archived by the owner on Sep 30, 2018. It is now read-only.

Commit

Permalink
[droid] - when building cross for x86 there is no modify_ldt found on…
Browse files Browse the repository at this point in the history
… linker stage. For this situation use the syscall directly (as stated on stackoverflow)
  • Loading branch information
Memphiz authored and Cory Fields committed Aug 3, 2012
1 parent d4176c2 commit 8e9a218
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions xbmc/cores/DllLoader/ldt_keeper.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,12 @@ extern "C" {
#if defined(__GLIBC__) && (__GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ == 0))
_syscall3( int, modify_ldt, int, func, void *, ptr, unsigned long, bytecount );
#else
#if defined(__ANDROID__) && defined(__i386__) && !defined(modify_ldt)
#define modify_ldt(a,b,c) syscall( __NR_modify_ldt, a, b, c);
#else
int modify_ldt(int func, void *ptr, unsigned long bytecount);
#endif
#endif
#ifdef __cplusplus
}
#endif
Expand Down

0 comments on commit 8e9a218

Please sign in to comment.