]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ada: Use computed value from os_constants to define sigset_t
authorDoug Rupp <rupp@adacore.com>
Thu, 9 Mar 2023 06:24:18 +0000 (22:24 -0800)
committerMarc Poulhiès <poulhies@adacore.com>
Fri, 26 May 2023 07:29:15 +0000 (09:29 +0200)
Remove hard coded definition and conform to standard usage of using
computed os_constants for opaque type declarations.

gcc/ada/

* libgnarl/s-osinte__qnx.ads (sigset_t): Modify
declaration to use system.os_constants computed
value. Align it.

gcc/ada/libgnarl/s-osinte__qnx.ads

index 3aa727f158f8bd686a8b7546e4a39fd9c9b471e3..3282abe88693457faa19d8de5ff7d199082e9d58 100644 (file)
@@ -562,8 +562,10 @@ package System.OS_Interface is
 
 private
 
-   type sigset_t is array (1 .. 2) of Interfaces.Unsigned_32;
+   type sigset_t is
+     array (0 .. OS_Constants.SIZEOF_sigset - 1) of unsigned_char;
    pragma Convention (C, sigset_t);
+   for sigset_t'Alignment use Interfaces.C.unsigned_long'Alignment;
 
    type pid_t is new int;