Bug #13233: Chase move of agp headers on FreeBSD.

main
Robert Noland 2007-11-18 22:40:13 -08:00 committed by Eric Anholt
parent a90510966e
commit c12a3a3ce0
2 changed files with 8 additions and 0 deletions

View File

@ -76,7 +76,11 @@ typedef struct drm_file drm_file_t;
#if defined(__FreeBSD__) #if defined(__FreeBSD__)
#include <sys/rman.h> #include <sys/rman.h>
#include <sys/memrange.h> #include <sys/memrange.h>
#if __FreeBSD_version >= 800004
#include <dev/agp/agpvar.h>
#else /* __FreeBSD_version >= 800004 */
#include <pci/agpvar.h> #include <pci/agpvar.h>
#endif /* __FreeBSD_version >= 800004 */
#include <sys/agpio.h> #include <sys/agpio.h>
#if __FreeBSD_version >= 500000 #if __FreeBSD_version >= 500000
#include <sys/mutex.h> #include <sys/mutex.h>

View File

@ -36,7 +36,11 @@
#include "drmP.h" #include "drmP.h"
#ifdef __FreeBSD__ #ifdef __FreeBSD__
#if __FreeBSD_version >= 800004
#include <dev/agp/agpreg.h>
#else /* __FreeBSD_version >= 800004 */
#include <pci/agpreg.h> #include <pci/agpreg.h>
#endif /* __FreeBSD_version >= 800004 */
#include <dev/pci/pcireg.h> #include <dev/pci/pcireg.h>
#endif #endif