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

2014-09-16 Thread Sergey Senozhatsky
Hello, On (09/15/14 12:02), Junio C Hamano wrote: Date: Mon, 15 Sep 2014 12:02:33 -0700 From: Junio C Hamano gits...@pobox.com To: Sergey Senozhatsky sergey.senozhat...@gmail.com Cc: git@vger.kernel.org Subject: Re: [PATCH] compat-util: add _DEFAULT_SOURCE define User-Agent: Gnus/5.13 (Gnus

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

2014-09-15 Thread Junio C Hamano
Sergey Senozhatsky sergey.senozhat...@gmail.com 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

[PATCH] compat-util: add _DEFAULT_SOURCE define

2014-09-13 Thread Sergey Senozhatsky
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