Re: [PATCH 1/4] getdate.3: Use blank definition of _GNU_SOURCE

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks, Rasmus. Applied.

Cheers,

Michael


On 06/04/2014 06:33 PM, Rasmus Villemoes wrote:
> Only the definedness of _GNU_SOURCE matters, so eliminate a possible
> source of confusion by not using a specific replacement text in the
> example program.
> 
> Signed-off-by: Rasmus Villemoes <rv@xxxxxxxxxxxxxxxxxx>
> ---
> 
> Notes:
>     Or maybe the intention was to define _XOPEN_SOURCE to the value 500,
>     since that is the minimal requirement for getdate(), and getdate_r()
>     is not used in the example.
> 
>  man3/getdate.3 | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/man3/getdate.3 b/man3/getdate.3
> index f286f98..df882b9 100644
> --- a/man3/getdate.3
> +++ b/man3/getdate.3
> @@ -272,7 +272,7 @@ Call 3 ("12:22:33") succeeded:
>  .SS Program source
>  \&
>  .nf
> -#define _GNU_SOURCE 500
> +#define _GNU_SOURCE
>  #include <time.h>
>  #include <stdio.h>
>  #include <stdlib.h>
> 


-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux