aboutsummaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-04-22 06:55:19 +0000
committerUlrich Drepper <drepper@redhat.com>2000-04-22 06:55:19 +0000
commit9790568c2bfbe0531dd456fb195f6b3964e04e22 (patch)
treeb8326a6083b10e18b89af4ca2621962dc86dc32c /sysdeps
parent64fe7d3c70c3b3af978f382d64cd43ad65a0ff83 (diff)
downloadglibc-9790568c2bfbe0531dd456fb195f6b3964e04e22.tar
glibc-9790568c2bfbe0531dd456fb195f6b3964e04e22.tar.gz
glibc-9790568c2bfbe0531dd456fb195f6b3964e04e22.tar.bz2
glibc-9790568c2bfbe0531dd456fb195f6b3964e04e22.zip
(init_iosys): Allow compilation if __NR_pciconfig_iobase is not defined.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/unix/sysv/linux/alpha/ioperm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/alpha/ioperm.c b/sysdeps/unix/sysv/linux/alpha/ioperm.c
index 310930bc21..98f7163053 100644
--- a/sysdeps/unix/sysv/linux/alpha/ioperm.c
+++ b/sysdeps/unix/sysv/linux/alpha/ioperm.c
@@ -537,6 +537,7 @@ init_iosys (void)
/* First try the pciconfig_iobase syscall added to 2.2.15 and 2.3.99. */
+#ifdef __NR_pciconfig_iobase
addr = __pciconfig_iobase (IOBASE_DENSE_MEM, 0, 0);
if (addr != -1)
{
@@ -578,6 +579,7 @@ init_iosys (void)
return 0;
}
+#endif
/* Second, collect the contents of /etc/alpha_systype or /proc/cpuinfo. */