mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-25 19:40:35 -09:00
uclibc: fix static builds
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
(cherry picked from commit 3f5a9d5cb9)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
committed by
Peter Korsgaard
parent
de1dc331af
commit
52d5a88247
29
package/uclibc/0001-gettimeofday-fix-static-build.patch
Normal file
29
package/uclibc/0001-gettimeofday-fix-static-build.patch
Normal file
@@ -0,0 +1,29 @@
|
||||
From b19f8f360970ffd0c1a6ac41e07c66dc39790b16 Mon Sep 17 00:00:00 2001
|
||||
From: Waldemar Brodkorb <wbx@openadk.org>
|
||||
Date: Wed, 10 May 2023 08:35:25 +0200
|
||||
Subject: [PATCH] gettimeofday: fix static build
|
||||
|
||||
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
|
||||
Upstream: https://cgit.uclibc-ng.org/cgi/cgit/uclibc-ng.git/commit/?id=b19f8f360970ffd0c1a6ac41e07c66dc39790b16
|
||||
---
|
||||
libc/sysdeps/linux/common/gettimeofday.c | 3 ++-
|
||||
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/libc/sysdeps/linux/common/gettimeofday.c b/libc/sysdeps/linux/common/gettimeofday.c
|
||||
index e5141088e..12473a8e6 100755
|
||||
--- a/libc/sysdeps/linux/common/gettimeofday.c
|
||||
+++ b/libc/sysdeps/linux/common/gettimeofday.c
|
||||
@@ -9,8 +9,9 @@
|
||||
#include <sys/syscall.h>
|
||||
#include <sys/time.h>
|
||||
|
||||
+#ifdef SHARED
|
||||
#include "ldso.h"
|
||||
-
|
||||
+#endif
|
||||
|
||||
|
||||
#ifdef __VDSO_SUPPORT__
|
||||
--
|
||||
2.30.2
|
||||
|
||||
Reference in New Issue
Block a user