base-linux: build 'lx_iopl()' function on x86 only

Fixes #3934
This commit is contained in:
Christian Prochaska 2020-11-03 16:22:43 +01:00 committed by Christian Helmuth
parent eafbfb8edf
commit ff429a8056

View File

@ -72,10 +72,12 @@ inline int lx_stat(const char *path, struct stat64 *buf)
** Functions used by core's io port session support code ** ** Functions used by core's io port session support code **
***********************************************************/ ***********************************************************/
#if defined(__x86_64__) || defined(__i386__)
inline int lx_iopl(int level) inline int lx_iopl(int level)
{ {
return lx_syscall(SYS_iopl, level); return lx_syscall(SYS_iopl, level);
} }
#endif
/************************************************** /**************************************************
** Functions used by core's io mem session code ** ** Functions used by core's io mem session code **