Subject: Re: [PATCH] compat-util: add _DEFAULT_SOURCE define

From: Junio C Hamano <[email-masked]>
Date: Mon, 15 Sep 2014 12:02:33 -0700

Sergey Senozhatsky <[email-masked]> writes:

> glibc has deprecated the use of _BSD_SOURCE define
>
>   warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
>
> To make it easier to maintain a cross platform source code, that
> warning can be suppressed by _DEFAULT_SOURCE.
>
> Define both _BSD_SOURCE, _DEFAULT_SOURCE and cleanup the build.

I can see you defined DEFAULT_SOURCE, but where did you do "cleanup
the build"?  Or did you mean "define both (in order) to clean up"?

Just making sure we are not only seeing a patch half eaten by mail
transport somewhere.

>
> Signed-off-by: Sergey Senozhatsky <[email-masked]>
> ---
>  git-compat-util.h | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/git-compat-util.h b/git-compat-util.h
> index 4e7e3f8..08a9ee2 100644
> --- a/git-compat-util.h
> +++ b/git-compat-util.h
> @@ -82,6 +82,7 @@
>  #define _ALL_SOURCE 1
>  #define _GNU_SOURCE 1
>  #define _BSD_SOURCE 1
> +#define _DEFAULT_SOURCE 1
>  #define _NETBSD_SOURCE 1
>  #define _SGI_SOURCE 1