[PATCH] scripts: fix warning generated by glibc 2.20

Sascha Hauer s.hauer at pengutronix.de
Sun Mar 1 22:32:25 PST 2015


On Sun, Mar 01, 2015 at 06:53:29PM +0100, Lucas Stach wrote:
> Defining only _BSD_SOURCE is deprecated with version 2.20 of
> glibc. It has been replaced by _DEFAULT_SOURCE. The manpage says
> that code which wants to work in the same way on both old and new
> versions of glibc should simply define both symbols.
> 
> Also move the definition up in fix_size as those feature flags
> should be defined before including any standard headers.
> 
> Signed-off-by: Lucas Stach <dev at lynxeye.de>
> ---
>  scripts/fix_size.c      | 6 +++---
>  scripts/mk-omap-image.c | 1 +
>  scripts/mkublheader.c   | 1 +
>  3 files changed, 5 insertions(+), 3 deletions(-)

Applied, thanks

Sascha


-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list