This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH v3 2/3] y2038: linux: Provide __mq_timedsend_time64 implementation
- From: Andreas Schwab <schwab at suse dot de>
- To: Lukasz Majewski <lukma at denx dot de>
- Cc: Joseph Myers <joseph at codesourcery dot com>, Paul Eggert <eggert at cs dot ucla dot edu>, Adhemerval Zanella <adhemerval dot zanella at linaro dot org>, Alistair Francis <alistair23 at gmail dot com>, Alistair Francis <alistair dot francis at wdc dot com>, GNU C Library <libc-alpha at sourceware dot org>, Siddhesh Poyarekar <siddhesh at gotplt dot org>, Florian Weimer <fweimer at redhat dot com>, Florian Weimer <fw at deneb dot enyo dot de>, Zack Weinberg <zackw at panix dot com>, Carlos O'Donell <carlos at redhat dot com>
- Date: Thu, 05 Mar 2020 17:55:52 +0100
- Subject: Re: [PATCH v3 2/3] y2038: linux: Provide __mq_timedsend_time64 implementation
- References: <20200304141930.16300-1-lukma@denx.de> <20200304141930.16300-2-lukma@denx.de>
On Mär 04 2020, Lukasz Majewski wrote:
> diff --git a/include/mqueue.h b/include/mqueue.h
> index 3c66f1711e..81d30dbdf7 100644
> --- a/include/mqueue.h
> +++ b/include/mqueue.h
> @@ -10,4 +10,13 @@ extern __typeof (mq_timedreceive) __mq_timedreceive __nonnull ((2, 5));
> hidden_proto (__mq_timedreceive)
> hidden_proto (mq_setattr)
> # endif
> +#if __TIMESIZE == 64
> +# define __mq_timedsend_time64 __mq_timedsend
> +#else
> +# include <bits/types/struct___timespec64.h>
I think the header should be included unconditionally.
Andreas.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."