[Ada] Add sys/time.h #include for QNX

Pierre-Marie de Rodat derodat@adacore.com
Tue Oct 5 08:26:49 GMT 2021


As part of an improvement to the precision of
Ada.Directories.Modification_Time, we use the type `struct timespec`
when we can (if _POSIX_C_SOURCE is greater than 200809L). For QNX, we
need to include the system header `sys/time.h` to get the type
declaration, `time.h` does not have it.

Tested on x86_64-pc-linux-gnu, committed on trunk

gcc/ada/

	* adaint.c (QNX): Add #include for sys/time.h.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: text/x-diff
Size: 207 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20211005/82c6adcb/attachment.bin>


More information about the Gcc-patches mailing list