From c9e8030617cb310758929ee622cc8bff2372bb55 Mon Sep 17 00:00:00 2001 From: Jerome Lambourg Date: Thu, 11 Jan 2018 08:53:52 +0000 Subject: [Ada] QNX: various runtime fixes for file I/O, timers, timezone 2018-01-11 Jerome Lambourg gcc/ada/ * libgnat/g-soliop__qnx.ads: New. * adaint.c, adaint.h, cstreams.c, s-oscons-tmplt.c, sysdep.c: Update for QNX. From-SVN: r256512 --- gcc/ada/adaint.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'gcc/ada/adaint.c') diff --git a/gcc/ada/adaint.c b/gcc/ada/adaint.c index 19fe957..3b0aea9 100644 --- a/gcc/ada/adaint.c +++ b/gcc/ada/adaint.c @@ -6,7 +6,7 @@ * * * C Implementation File * * * - * Copyright (C) 1992-2017, Free Software Foundation, Inc. * + * Copyright (C) 1992-2018, Free Software Foundation, Inc. * * * * GNAT is free software; you can redistribute it and/or modify it under * * terms of the GNU General Public License as published by the Free Soft- * @@ -81,6 +81,10 @@ #define __BSD_VISIBLE 1 #endif +#if defined (__QNX__) +#define _LARGEFILE64_SOURCE 1 +#endif + #ifdef IN_RTS #include "tconfig.h" #include "tsystem.h" @@ -773,7 +777,7 @@ __gnat_rmdir (char *path) } #if defined (_WIN32) || defined (__linux__) || defined (__sun__) \ - || defined (__FreeBSD__) || defined(__DragonFly__) + || defined (__FreeBSD__) || defined(__DragonFly__) || defined (__QNX__) #define HAS_TARGET_WCHAR_T #endif @@ -2346,7 +2350,7 @@ __gnat_number_of_cpus (void) #if defined (__linux__) || defined (__sun__) || defined (_AIX) \ || defined (__APPLE__) || defined (__FreeBSD__) || defined (__OpenBSD__) \ - || defined (__DragonFly__) || defined (__NetBSD__) + || defined (__DragonFly__) || defined (__NetBSD__) || defined (__QNX__) cores = (int) sysconf (_SC_NPROCESSORS_ONLN); #elif defined (__hpux__) -- cgit v1.1