Summary: | compile failure in lnx_agp.c | ||
---|---|---|---|
Product: | xorg | Reporter: | David Schleef <ds> |
Component: | Build/Modular | Assignee: | Xorg Project Team <xorg-team> |
Status: | RESOLVED NOTOURBUG | QA Contact: | |
Severity: | normal | ||
Priority: | high | CC: | psymind |
Version: | git | ||
Hardware: | x86 (IA32) | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Bug Depends on: | |||
Bug Blocks: | 1690 |
Description
David Schleef
2005-10-25 14:40:50 UTC
distro Ubuntu/breezy. (In reply to comment #2) > toolchain bug: > > http://lists.freedesktop.org/archives/xorg/2005-October/010694.html btw, if you modify lnx_agp.c as the following: #if defined(linux) #include <asm/ioctl.h> #include <linux/agpgart.h> #elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__) #include <sys/ioctl.h> #include <sys/agpio.h> #endif ^^^^ Original #if defined(linux) + #undef _LINUX_TYPES_H + #include <linux/types.h> #include <asm/ioctl.h> #include <linux/agpgart.h> #elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__) #include <sys/ioctl.h> #include <sys/agpio.h> #endif ^^^ Modified. The problem dissapared at me. So just put two line to lnx_agp.c and solved. Any comments ? Somebody else can test this too ? the patch in comment #3 is a nasty hack, and wrong no, i'm pretty sure it's a bug in the system headers and therefore not ours to fix or work around. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.