diff options
author | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-07-06 20:51:40 +0000 |
---|---|---|
committer | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-07-06 20:51:40 +0000 |
commit | bd10f27e42d5487ff37a83273aa94bf301bd66a5 (patch) | |
tree | 71b62ec018a0b2904702836ca1de8fb774ec58f6 | |
parent | 40bdfbcc4d3ea167c61e835a71f7194c793c5314 (diff) | |
download | gcc-bd10f27e42d5487ff37a83273aa94bf301bd66a5.tar.gz |
* s-oscons-tmplt.c: Add support for DragonFly alongside FreeBSD.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@225480 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ada/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/ada/s-oscons-tmplt.c | 7 |
2 files changed, 8 insertions, 3 deletions
diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index db794204330..61982165287 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -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 diff --git a/gcc/ada/s-oscons-tmplt.c b/gcc/ada/s-oscons-tmplt.c index e289692a125..56da9f8a5cb 100644 --- a/gcc/ada/s-oscons-tmplt.c +++ b/gcc/ada/s-oscons-tmplt.c @@ -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). |