#include "c.h"
#include "nls.h"
-#if defined(__i386__)
+#if defined(__i386__) || defined(__x86_64__)
# ifdef HAVE_SYS_IO_H
# include <sys/io.h>
# elif defined(HAVE_ASM_IO_H)
* not export that header.
*/
#undef __i386__
+#undef __x86_64__
void outb(int a __attribute__ ((__unused__)),
int b __attribute__ ((__unused__)))
{
{
return 0;
}
-#endif /* __i386__ */
+#endif /* __i386__ __x86_64__ */
#elif defined(__alpha__)
/* <asm/io.h> fails to compile, probably because of u8 etc */
return 0;
}
-#if defined(__i386__) || defined(__alpha__)
+#if defined(__i386__) || defined(__alpha__) || defined(__x86_64__)
# if defined(HAVE_IOPL)
static int i386_iopl(const int level)
{
struct clock_ops *probe_for_cmos_clock(void)
{
int have_cmos =
-#if defined(__i386__) || defined(__alpha__)
+#if defined(__i386__) || defined(__alpha__) || defined(__x86_64__)
TRUE;
#else
FALSE;