diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2021-02-17 18:30:08 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2021-06-15 10:42:11 -0300 |
commit | f98beb65f57afd7f62a5d0e21863323975b43c1c (patch) | |
tree | 2cc247c2821d53372fdaaa8470303c43603b7e03 /sysdeps/unix/sysv/linux/hppa/bits | |
parent | b997083e3d30dc165d8e6dd3b6a126259824033e (diff) | |
download | glibc-f98beb65f57afd7f62a5d0e21863323975b43c1c.tar.gz glibc-f98beb65f57afd7f62a5d0e21863323975b43c1c.tar.xz glibc-f98beb65f57afd7f62a5d0e21863323975b43c1c.zip |
y2038: Use a common definition for semid_ds
Instead of replicate the same definitions from struct_semid64_ds.h on the multiple struct_semid_ds.h, use a common header which is included when required (struct_semid64_ds_helper.h). The __USE_TIME_BITS64 is not defined internally yet, although the internal header is used when building the 64-bit semctl implementation. Reviewed-by: Carlos O'Donell <carlos@redhat.com> Tested-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'sysdeps/unix/sysv/linux/hppa/bits')
-rw-r--r-- | sysdeps/unix/sysv/linux/hppa/bits/types/struct_semid_ds.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/hppa/bits/types/struct_semid_ds.h b/sysdeps/unix/sysv/linux/hppa/bits/types/struct_semid_ds.h index 16a9735e7b..5067fb1572 100644 --- a/sysdeps/unix/sysv/linux/hppa/bits/types/struct_semid_ds.h +++ b/sysdeps/unix/sysv/linux/hppa/bits/types/struct_semid_ds.h @@ -23,6 +23,9 @@ /* Data structure describing a set of semaphores. */ struct semid_ds { +#ifdef __USE_TIME_BITS64 +# include <bits/types/struct_semid64_ds_helper.h> +#else struct ipc_perm sem_perm; /* operation permission struct */ __syscall_ulong_t __sem_otime_high; __time_t sem_otime; /* last semop() time */ @@ -31,4 +34,5 @@ struct semid_ds __syscall_ulong_t sem_nsems; /* number of semaphores in set */ __syscall_ulong_t __glibc_reserved3; __syscall_ulong_t __glibc_reserved4; +#endif }; |