From: Ulrich Drepper Date: Sat, 22 Apr 2000 06:55:19 +0000 (+0000) Subject: (init_iosys): Allow compilation if __NR_pciconfig_iobase is not defined. X-Git-Tag: glibc-2.16-ports-before-merge~2378 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9790568c2bfbe0531dd456fb195f6b3964e04e22;p=thirdparty%2Fglibc.git (init_iosys): Allow compilation if __NR_pciconfig_iobase is not defined. --- diff --git a/sysdeps/unix/sysv/linux/alpha/ioperm.c b/sysdeps/unix/sysv/linux/alpha/ioperm.c index 310930bc217..98f71630539 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. */