diff options
author | Jeremy Huddleston <jeremyhu@freedesktop.org> | 2008-04-08 21:25:37 -0700 |
---|---|---|
committer | Jeremy Huddleston <jeremyhu@freedesktop.org> | 2008-04-08 21:25:37 -0700 |
commit | bc4883e00b12a9289eeb9625862d42b0ea141356 (patch) | |
tree | 581a032e72d8fdc671691840ee061e4d468433fa | |
parent | 126e9bc8c480b403dedc44c1e8c4fe1476340ed9 (diff) | |
parent | dd6b0de38d649617600a8357e576955c9b831328 (diff) |
Merge branch 'server-1.4-branch' into xorg-server-1.4-apple
-rw-r--r-- | Xext/shm.c | 2 | ||||
-rw-r--r-- | Xext/xf86bigfont.c | 2 | ||||
-rw-r--r-- | configure.ac | 6 | ||||
-rw-r--r-- | hw/xfree86/loader/os.c | 2 | ||||
-rw-r--r-- | hw/xfree86/os-support/bus/Pci.h | 2 | ||||
-rw-r--r-- | hw/xfree86/os-support/bus/freebsdPci.c | 2 |
6 files changed, 10 insertions, 6 deletions
diff --git a/Xext/shm.c b/Xext/shm.c index 376f12348..3c0d1eef0 100644 --- a/Xext/shm.c +++ b/Xext/shm.c @@ -154,7 +154,7 @@ static ShmFuncs fbFuncs = {fbShmCreatePixmap, fbShmPutImage}; } -#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__CYGWIN__) +#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__CYGWIN__) || defined(__DragonFly__) #include <sys/signal.h> static Bool badSysCall = FALSE; diff --git a/Xext/xf86bigfont.c b/Xext/xf86bigfont.c index f50481f78..c2f891a7e 100644 --- a/Xext/xf86bigfont.c +++ b/Xext/xf86bigfont.c @@ -104,7 +104,7 @@ static unsigned int pagesize; static Bool badSysCall = FALSE; -#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__CYGWIN__) +#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__CYGWIN__) || defined(__DragonFly__) #include <sys/signal.h> diff --git a/configure.ac b/configure.ac index 1a1087581..87785a568 100644 --- a/configure.ac +++ b/configure.ac @@ -295,6 +295,7 @@ case $host_cpu in darwin*) use_x86_asm="no" ;; *linux*) DEFAULT_INT10=vm86 ;; *freebsd*) AC_DEFINE(USE_DEV_IO) ;; + *dragonfly*) AC_DEFINE(USE_DEV_IO) ;; *netbsd*) AC_DEFINE(USE_I386_IOPL) SYS_LIBS=-li386 ;; @@ -320,6 +321,7 @@ case $host_cpu in case $host_os in darwin*) use_x86_asm="no" ;; *freebsd*) AC_DEFINE(USE_DEV_IO, 1, [BSD /dev/io]) ;; + *dragonfly*) AC_DEFINE(USE_DEV_IO, 1, [BSD /dev/io]) ;; *netbsd*) AC_DEFINE(USE_I386_IOPL, 1, [BSD i386 iopl]) SYS_LIBS=-lx86_64 ;; @@ -341,7 +343,7 @@ DRI=no KDRIVE_HW=no dnl it would be nice to autodetect these *CONS_SUPPORTs case $host_os in - *freebsd*) + *freebsd* | *dragonfly*) case $host_os in kfreebsd*-gnu) ;; *) AC_DEFINE(CSRG_BASED, 1, [System is BSD-like]) ;; @@ -1321,7 +1323,7 @@ dnl has it in libc), or if libdl is needed to get it. ;; esac ;; - freebsd* | kfreebsd*-gnu) + freebsd* | kfreebsd*-gnu | dragonfly*) XORG_OS="freebsd" XORG_OS_SUBDIR="bsd" case $host_cpu in diff --git a/hw/xfree86/loader/os.c b/hw/xfree86/loader/os.c index fdddce898..12cf3d859 100644 --- a/hw/xfree86/loader/os.c +++ b/hw/xfree86/loader/os.c @@ -42,6 +42,8 @@ #define OSNAME "linux" #elif defined(__FreeBSD__) #define OSNAME "freebsd" +#elif defined(__DragonFly__) +#define OSNAME "dragonfly" #elif defined(__NetBSD__) #define OSNAME "netbsd" #elif defined(__OpenBSD__) diff --git a/hw/xfree86/os-support/bus/Pci.h b/hw/xfree86/os-support/bus/Pci.h index f0cb916da..5ebbdd55e 100644 --- a/hw/xfree86/os-support/bus/Pci.h +++ b/hw/xfree86/os-support/bus/Pci.h @@ -235,7 +235,7 @@ # if defined(linux) # define ARCH_PCI_INIT axpPciInit # define INCLUDE_XF86_MAP_PCI_MEM -# elif defined(__FreeBSD__) || defined(__OpenBSD__) +# elif defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__DragonFly__) # define ARCH_PCI_INIT freebsdPciInit # define INCLUDE_XF86_MAP_PCI_MEM # define INCLUDE_XF86_NO_DOMAIN diff --git a/hw/xfree86/os-support/bus/freebsdPci.c b/hw/xfree86/os-support/bus/freebsdPci.c index 61cb405a8..63c00b262 100644 --- a/hw/xfree86/os-support/bus/freebsdPci.c +++ b/hw/xfree86/os-support/bus/freebsdPci.c @@ -83,7 +83,7 @@ static pciBusInfo_t freebsdPci0 = { /* bridge */ NULL }; -#if !defined(__OpenBSD__) && !defined(__FreeBSD__) +#if !defined(__OpenBSD__) && !defined(__FreeBSD__) && !defined(__DragonFly__) #if X_BYTE_ORDER == X_BIG_ENDIAN #ifdef __sparc__ #ifndef ASI_PL |