* XF86-3.3.2 for Linux/AXP libc 6 compile fix
@ 1998-06-27 20:22 Felix von Leitner
0 siblings, 0 replies; only message in thread
From: Felix von Leitner @ 1998-06-27 20:22 UTC (permalink / raw)
To: axp-list
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__ */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1998-06-27 20:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-06-27 20:22 XF86-3.3.2 for Linux/AXP libc 6 compile fix Felix von Leitner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox