From: Felix von Leitner <leitner@math.fu-berlin.de>
To: axp-list@redhat.com
Subject: XF86-3.3.2 for Linux/AXP libc 6 compile fix
Date: Sat, 27 Jun 1998 22:22:26 +0200 [thread overview]
Message-ID: <19980627222226.A5710@math.fu-berlin.de> (raw)
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__ */
reply other threads:[~1998-06-27 20:22 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox