diff mbox series

[libubootenv,1/2] uboot_env: fix build with musl libc

Message ID 1558471556-13127-1-git-send-email-pjtexier@koncepto.io
State Accepted
Headers show
Series [libubootenv,1/2] uboot_env: fix build with musl libc | expand

Commit Message

'Darko Komljenovic' via swupdate May 21, 2019, 8:45 p.m. UTC
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>
---
 src/uboot_env.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

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>