summaryrefslogtreecommitdiffstats
path: root/scripts/mkublheader.c
diff options
context:
space:
mode:
authorLucas Stach <dev@lynxeye.de>2015-03-01 18:53:29 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2015-03-02 07:32:01 +0100
commit603ba8c1ba906a66c71610b8a0a13375461565c2 (patch)
treef3f2412f2e8850c3c63aa8bda4823a858f28f4d7 /scripts/mkublheader.c
parentf8d5736939551cd6aaf7f2926999703fea6d2620 (diff)
downloadbarebox-603ba8c1ba906a66c71610b8a0a13375461565c2.tar.gz
barebox-603ba8c1ba906a66c71610b8a0a13375461565c2.tar.xz
scripts: fix warning generated by glibc 2.20
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@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'scripts/mkublheader.c')
-rw-r--r--scripts/mkublheader.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/mkublheader.c b/scripts/mkublheader.c
index b61630a25f..5464a80611 100644
--- a/scripts/mkublheader.c
+++ b/scripts/mkublheader.c
@@ -19,6 +19,7 @@
*/
#define _BSD_SOURCE
+#define _DEFAULT_SOURCE
#include <stdio.h>
#include <sys/types.h>