From: Waldemar Kozaczuk <[email protected]>
Committer: Waldemar Kozaczuk <[email protected]>
Branch: master

musl: add tfind and tsearch

New version of libtsm.so used by cli app needs tfind() and
tsearch() symbols and this patch modifies the Makefile to add their
musl implementations.

Signed-off-by: Waldemar Kozaczuk <[email protected]>

---
diff --git a/Makefile b/Makefile
--- a/Makefile
+++ b/Makefile
@@ -1455,6 +1455,9 @@ libc += arch/$(arch)/ucontext/ucontext.o
 libc += string/memmove.o
 endif
 
+musl += search/tfind.o
+musl += search/tsearch.o
+
 musl += stdio/__fclose_ca.o
 libc += stdio/__fdopen.o
 $(out)/libc/stdio/__fdopen.o: CFLAGS += --include libc/syscall_to_function.h
diff --git a/exported_symbols/osv_ld-musl.so.1.symbols 
b/exported_symbols/osv_ld-musl.so.1.symbols
--- a/exported_symbols/osv_ld-musl.so.1.symbols
+++ b/exported_symbols/osv_ld-musl.so.1.symbols
@@ -1104,6 +1104,7 @@ tcsetpgrp
 telldir
 tempnam
 textdomain
+tfind
 tgamma
 tgammaf
 tgammal
@@ -1140,6 +1141,7 @@ truncate
 truncate64
 truncf
 truncl
+tsearch
 ttyname
 ttyname_r
 __tzname
diff --git a/exported_symbols/osv_libc.so.6.symbols 
b/exported_symbols/osv_libc.so.6.symbols
--- a/exported_symbols/osv_libc.so.6.symbols
+++ b/exported_symbols/osv_libc.so.6.symbols
@@ -906,6 +906,7 @@ tcsetpgrp
 telldir
 tempnam
 textdomain
+tfind
 time
 timegm
 timerfd_create
@@ -936,6 +937,7 @@ __towupper_l
 towupper_l
 truncate
 truncate64
+tsearch
 ttyname
 ttyname_r
 __tzname

-- 
You received this message because you are subscribed to the Google Groups "OSv 
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/osv-dev/000000000000a038c005d4c2fb1b%40google.com.

Reply via email to