compiler.h: only use inx/outx on ARM with glibc

musl only implements inx/outx on x86, so check for __GLIBC__ instead of
__linux__.

Signed-off-by: Ross Burton <ross.burton@intel.com>
This commit is contained in:
Ross Burton 2018-09-20 13:21:34 +01:00 committed by Adam Jackson
parent 5f65a6246f
commit 6a2ce6c5da

View File

@ -758,9 +758,9 @@ inl(unsigned short port)
return xf86ReadMmio32Le((void *) ioBase, port);
}
#elif defined(__arm__) && defined(__linux__)
#elif defined(__arm__) && defined(__GLIBC__)
/* for Linux on ARM, we use the LIBC inx/outx routines */
/* for glibc on ARM, we use the LIBC inx/outx routines */
/* note that the appropriate setup via "ioperm" needs to be done */
/* *before* any inx/outx is done. */