]> gcc.gnu.org Git - gcc.git/commitdiff
* s-oscons-tmplt.c: Add support for DragonFly alongside FreeBSD.
authorJohn Marino <gnugcc@marino.st>
Mon, 6 Jul 2015 20:51:40 +0000 (20:51 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Mon, 6 Jul 2015 20:51:40 +0000 (20:51 +0000)
From-SVN: r225480

gcc/ada/ChangeLog
gcc/ada/s-oscons-tmplt.c

index db7942043306013bc4d3bfc060b4846fbbb1c37e..61982165287c9dc61097b8dee7c64e2bc03c6d45 100644 (file)
@@ -1,3 +1,7 @@
+2015-07-06  John Marino  <gnugcc@marino.st>
+
+       * s-oscons-tmplt.c: Add support for DragonFly alongside FreeBSD.
+
 2015-06-29  Eric Botcazou  <ebotcazou@adacore.com>
 
        PR ada/63310
index e289692a125ac9d05c74930c43dda7f89ce74eb5..56da9f8a5cbf745738487b7e5b5caf922fcce16c 100644 (file)
@@ -402,7 +402,7 @@ CND(FNDELAY, "Nonblocking")
 
 /* ioctl(2) requests are "int" in UNIX, but "unsigned long" on FreeBSD */
 
-#ifdef __FreeBSD__
+#if defined (__FreeBSD__) || defined (__DragonFly__)
 # define CNI CNU
 # define IOCTL_Req_T "unsigned"
 #else
@@ -1014,7 +1014,7 @@ CNU(RTS_CONTROL_ENABLE, "Enable RTS flow ctrl")
 
 */
 
-#if defined (__FreeBSD__) || defined (__linux__)
+#if defined (__FreeBSD__) || defined (__linux__) || defined (__DragonFly__)
 # define PTY_Library "-lutil"
 #else
 # define PTY_Library ""
@@ -1435,7 +1435,8 @@ CND(CLOCK_FASTEST, "Fastest clock")
 #endif
 CND(CLOCK_THREAD_CPUTIME_ID, "Thread CPU clock")
 
-#if defined(__FreeBSD__) || (defined(_AIX) && defined(_AIXVERSION_530))
+#if defined(__FreeBSD__) || (defined(_AIX) && defined(_AIXVERSION_530)) \
+ || defined(__DragonFly__)
 /** On these platforms use system provided monotonic clock instead of
  ** the default CLOCK_REALTIME. We then need to set up cond var attributes
  ** appropriately (see thread.c).
This page took 0.070681 seconds and 5 git commands to generate.