y2038: Use a common definition for msqid_ds
authorLukasz Majewski <lukma@denx.de>
Thu, 22 Oct 2020 10:04:40 +0000 (12:04 +0200)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 15 Jun 2021 13:42:11 +0000 (10:42 -0300)
commitb997083e3d30dc165d8e6dd3b6a126259824033e
tree1d2e343406f154e07a07bce025b75df7779b1d98
parent4e8521333bea6e89fcef1020e59a5f799241c5d4
y2038: Use a common definition for msqid_ds

Instead of replicate the same definitions from struct_msqid64_ds.h
on the multiple struct_msqid_ds.h, use a common header which is included
when required (struct_msqid64_ds_helper.h).

The __USE_TIME_BITS64 is not defined internally yet, although the
internal header is used when building the 64-bit stat implementations.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Tested-by: Carlos O'Donell <carlos@redhat.com>
sysdeps/unix/sysv/linux/Makefile
sysdeps/unix/sysv/linux/bits/types/struct_msqid64_ds.h
sysdeps/unix/sysv/linux/bits/types/struct_msqid64_ds_helper.h [new file with mode: 0644]
sysdeps/unix/sysv/linux/bits/types/struct_msqid_ds.h
sysdeps/unix/sysv/linux/hppa/bits/types/struct_msqid_ds.h
sysdeps/unix/sysv/linux/mips/bits/types/struct_msqid_ds.h
sysdeps/unix/sysv/linux/powerpc/bits/types/struct_msqid_ds.h
sysdeps/unix/sysv/linux/sparc/bits/types/struct_msqid_ds.h