aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/libgnarl
diff options
context:
space:
mode:
authorDoug Rupp <rupp@adacore.com>2023-03-08 22:24:18 -0800
committerMarc Poulhiès <poulhies@adacore.com>2023-05-26 09:29:15 +0200
commitd874abd8b7f4574d5a3ad8a918abbf7608250dbf (patch)
tree3c26844a1760d358b68a224daa6b76c63482a8cf /gcc/ada/libgnarl
parentd6dcb41d8f402ae356cb0890598d77c22c42fb21 (diff)
downloadgcc-d874abd8b7f4574d5a3ad8a918abbf7608250dbf.zip
gcc-d874abd8b7f4574d5a3ad8a918abbf7608250dbf.tar.gz
gcc-d874abd8b7f4574d5a3ad8a918abbf7608250dbf.tar.bz2
ada: Use computed value from os_constants to define sigset_t
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.
Diffstat (limited to 'gcc/ada/libgnarl')
-rw-r--r--gcc/ada/libgnarl/s-osinte__qnx.ads4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/ada/libgnarl/s-osinte__qnx.ads b/gcc/ada/libgnarl/s-osinte__qnx.ads
index 3aa727f..3282abe 100644
--- a/gcc/ada/libgnarl/s-osinte__qnx.ads
+++ b/gcc/ada/libgnarl/s-osinte__qnx.ads
@@ -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;