[PATCH] time: Define _STRUCT_TIMESPEC in <bits/types/struct_timespec.h>

Florian Weimer fweimer@redhat.com
Thu Jun 28 08:28:00 GMT 2018


On 06/21/2018 01:24 PM, Florian Weimer wrote:
> diff --git a/time/bits/types/struct_timespec.h b/time/bits/types/struct_timespec.h
> index 644db9fdb6..5b77c52b4f 100644
> --- a/time/bits/types/struct_timespec.h
> +++ b/time/bits/types/struct_timespec.h
> @@ -1,5 +1,6 @@
> -#ifndef __timespec_defined
> -#define __timespec_defined 1
> +/* NB: Include guard matches what <linux/time.h> uses.  */
> +#ifndef _STRUCT_TIMESPEC
> +#define _STRUCT_TIMESPEC 1

Are there any objections to this change?  It's required to fix a GCC 
build failure, so I'm going to commit this soon (probably on Friday).

Thanks,
Florian



More information about the Libc-alpha mailing list