Commit 4a64cca6 authored by Roland Mainz's avatar Roland Mainz

xc/config/cf/DragonFly.cf

xc/config/cf/Imake.cf
xc/config/cf/Imakefile
xc/config/imake/imake.c
xc/config/imake/imakemdep.h
xc/extras/drm/shared/drm.h
xc/include/Xos_r.h
xc/lib/xtrans/Xtranssock.c
xc/programs/Xserver/hw/xfree86/os-support/xf86_OSlib.h
xc/programs/Xserver/hw/xfree86/os-support/xf86_libc.h
xc/programs/Xserver/hw/xfree86/os-support/linux/lnx_agp.c
//bugs.freedesktop.org/show_bug.cgi?id=1712) attachment #2004
    (https://bugs.freedesktop.org/attachment.cgi?id=2004): Add support for
    DragonFly/BSD platform. Patch by Jeroen Ruigrok <asmodai@tendra.org>
    and Mike Verona <firedragonfly@gmail.com>.
parent a2abf77f
/* $Xorg: imakemdep.h,v 1.6 2001/02/09 02:03:16 xorgcvs Exp $ */
/* $XdotOrg: $ */
/* $XdotOrg: xc/config/imake/imakemdep.h,v 1.8 2005/01/19 22:28:20 alanc Exp $ */
/*
Copyright (c) 1993, 1994, 1998 The Open Group
......@@ -294,7 +294,7 @@ in this Software without prior written authorization from The Open Group.
#if defined(__386BSD__)
#define DEFAULT_CPP "/usr/libexec/cpp"
#endif
#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__)
#define USE_CC_E
#endif
#if defined(__sgi) && defined(__ANSI_CPP__)
......@@ -357,8 +357,8 @@ char *cpp_argv[ARGUMENTS] = {
#endif
#endif
#if defined(__386BSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || \
defined(__FreeBSD__) || defined(MACH) || defined(linux) || \
defined(__GNU__) || defined(__bsdi__) || defined(__GNUC__)
defined(__FreeBSD__) || defined(__DragonFly__) || defined(MACH) || \
defined(linux) || defined(__GNU__) || defined(__bsdi__) || defined(__GNUC__)
# ifdef __i386__
"-D__i386__",
# if defined(__GNUC__) && (__GNUC__ >= 3)
......@@ -836,14 +836,14 @@ char *cpp_argv[ARGUMENTS] = {
# define DEFAULT_OS_MINOR_REV "r %*d.%[0-9]"
# define DEFAULT_OS_TEENY_REV "v %[0-9]"
/* # define DEFAULT_OS_NAME "srm %[^\n]" */ /* Not useful on ISC */
# elif defined(__FreeBSD__) || defined(__OpenBSD__)
# elif defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__DragonFly__)
/* BSD/OS too? */
/* uname -r returns "x.y[.z]-mumble", e.g. "2.1.5-RELEASE" or "2.2-0801SNAP" */
# define DEFAULT_OS_MAJOR_REV "r %[0-9]"
# define DEFAULT_OS_MINOR_REV "r %*d.%[0-9]"
# define DEFAULT_OS_TEENY_REV "r %*d.%*d.%[0-9]"
# define DEFAULT_OS_NAME "srm %[^\n]"
# if defined(__FreeBSD__)
# if defined(__FreeBSD__) || defined(__DragonFly__)
/* Use an alternate way to find the teeny version for -STABLE, -SNAP versions */
# ifndef CROSSCOMPILE_CPP
# define DEFAULT_OS_TEENY_REV_FROB(buf, size) \
......@@ -1257,6 +1257,9 @@ struct symtab predefs[] = {
#ifdef _MIPS_SZPTR
{"_MIPS_SZPTR", DEF_STRINGIFY(_MIPS_SZPTR)},
#endif
#ifdef __DragonFly__
{"__DragonFly__", "1"},
#endif
#ifdef __FreeBSD__
{"__FreeBSD__", "1"},
#endif
......@@ -1438,7 +1441,8 @@ typedef enum {
netBSD,
LinuX,
emx,
win32
win32,
dragonfly
} System;
# ifdef linux
......@@ -1451,6 +1455,8 @@ System sys = netBSD;
System sys = emx;
# elif defined WIN32
System sys = win32;
# elif defined __DragonFly__
System sys = dragonfly;
# else
System sys = unknown;
# endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment