kumquat-buildroot/package/libubootenv/0003-uboot_env-fix-build-with-musl-libc.patch
Pierre-Jean Texier a3ac04177c package/libubootenv: fix build with musl and static lib
Fixes:

 - http://autobuild.buildroot.net/results/e1837ccbe774071876642655b1fcffbd69dd7947/
 - http://autobuild.buildroot.net/results/206f1eba0dec39de1c02d760fa8f961d5a3879d0/

Signed-off-by: Pierre-Jean Texier <pjtexier@koncepto.io>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2019-05-26 15:43:05 +02:00

32 lines
843 B
Diff

From 113a4ea9ec48b9428b3abac21ecca7d8f11502fe Mon Sep 17 00:00:00 2001
From: Pierre-Jean Texier <pjtexier@koncepto.io>
Date: Tue, 21 May 2019 21:32:27 +0200
Subject: [libubootenv][PATCH] uboot_env: fix build with musl libc
Fixes the following compile failure when building with musl:
- http://autobuild.buildroot.net/results/206/206f1eba0dec39de1c02d760fa8f961d5a3879d0/
Signed-off-by: Pierre-Jean Texier <pjtexier@koncepto.io>
[Upstream status: http://patchwork.ozlabs.org/patch/1103009/]
---
src/uboot_env.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/uboot_env.c b/src/uboot_env.c
index 4c298d1..a0f977c 100644
--- a/src/uboot_env.c
+++ b/src/uboot_env.c
@@ -11,6 +11,8 @@
* @brief This is the implementation of libubootenv library
*
*/
+
+#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
--
2.7.4