summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGwenolé Beauchesne <gbeauchesne@mandriva.org>2004-10-04 05:14:54 +0000
committerGwenolé Beauchesne <gbeauchesne@mandriva.org>2004-10-04 05:14:54 +0000
commit7b8e45cf88bda5368988027a14183500979e222a (patch)
tree0d2e2155945e533f69982d9ace91dc196f306557
parentda5038e3ba3f37acf614797bea965c3b075a7b22 (diff)
downloaddrakx-backup-do-not-use-7b8e45cf88bda5368988027a14183500979e222a.tar
drakx-backup-do-not-use-7b8e45cf88bda5368988027a14183500979e222a.tar.gz
drakx-backup-do-not-use-7b8e45cf88bda5368988027a14183500979e222a.tar.bz2
drakx-backup-do-not-use-7b8e45cf88bda5368988027a14183500979e222a.tar.xz
drakx-backup-do-not-use-7b8e45cf88bda5368988027a14183500979e222a.zip
allow ioports on x86_64 too for pcmcia support
-rw-r--r--mdk-stage1/dietlibc/include/sys/io.h2
1 files changed, 1 insertions, 1 deletions
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));