From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 27832 invoked from network); 27 Jun 1998 20:22:47 -0000 Received: from leibniz.math.fu-berlin.de (HELO math.fu-berlin.de) (qmailr@160.45.40.10) by mail2.redhat.com with SMTP; 27 Jun 1998 20:22:47 -0000 Received: (qmail 3183 invoked from network); 27 Jun 1998 20:22:35 -0000 Received: from kutta.math.fu-berlin.de (HELO math.fu-berlin.de) (160.45.40.166) by leibniz.math.fu-berlin.de with SMTP; 27 Jun 1998 20:22:35 -0000 Received: (qmail 5719 invoked by uid 8044); 27 Jun 1998 20:22:46 -0000 Message-ID: <19980627222226.A5710@math.fu-berlin.de> Date: Sat, 27 Jun 1998 22:22:26 +0200 From: Felix von Leitner To: axp-list@redhat.com Subject: XF86-3.3.2 for Linux/AXP libc 6 compile fix Mail-Followup-To: axp-list@redhat.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.92.8i The latest glibc no longer defines _syscall2, so one has to use syscall instead. Felix --- xc/programs/Xserver/hw/xfree86/etc/scanpci.c.old Sat Jun 27 22:16:16 1998 +++ xc/programs/Xserver/hw/xfree86/etc/scanpci.c Sat Jun 27 22:15:46 1998 @@ -248,7 +248,7 @@ unsigned char len, void * buf) { - return _syscall2(__NR_pciconfig_read, bus, dfn, off, len, buf); + return syscall(__NR_pciconfig_read, bus, dfn, off, len, buf); } int pciconfig_write( unsigned char bus, @@ -257,7 +257,7 @@ unsigned char len, void * buf) { - return _syscall2(__NR_pciconfig_write, bus, dfn, off, len, buf); + return syscall(__NR_pciconfig_write, bus, dfn, off, len, buf); } #else Generate compiler error - scanpci unsupported on non-linux alpha platforms --- xc/programs/Xserver/hw/xfree86/common_hw/xf86_PCI.c.old Sat Jun 27 22:17:58 1998 +++ xc/programs/Xserver/hw/xfree86/common_hw/xf86_PCI.c Sat Jun 27 22:18:05 1998 @@ -501,7 +501,7 @@ unsigned char len, void * buf) { - return _syscall2(__NR_pciconfig_read, bus, dfn, off, len, buf); + return syscall(__NR_pciconfig_read, bus, dfn, off, len, buf); } int pciconfig_write( unsigned char bus, @@ -510,7 +510,7 @@ unsigned char len, void * buf) { - return _syscall2(__NR_pciconfig_write, bus, dfn, off, len, buf); + return syscall(__NR_pciconfig_write, bus, dfn, off, len, buf); } #endif /* __alpha__ */