From 4244e7b8f96e3c6050a64ed04282e165f9728a6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwenol=C3=A9=20Beauchesne?= Date: Tue, 21 Sep 2004 02:25:58 +0000 Subject: define io ports on x86_64 too for pcmcia stuff --- mdk-stage1/dietlibc/include/sys/io.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mdk-stage1/dietlibc/include/sys/io.h b/mdk-stage1/dietlibc/include/sys/io.h index 5edf33a57..40a0d459b 100644 --- a/mdk-stage1/dietlibc/include/sys/io.h +++ b/mdk-stage1/dietlibc/include/sys/io.h @@ -8,7 +8,7 @@ extern int iopl(int level) __THROW; #ifndef __STRICT_ANSI__ /* anyone have a cleaner solution for this mess? */ -#ifdef __i386__ +#if defined(__i386__) || defined(__x86_64__) static inline unsigned char inb (unsigned short int port) { unsigned char _v; __asm__ __volatile__ ("inb %w1,%0":"=a" (_v):"Nd" (port)); -- cgit v1.2.1