getservbyport_r: fix out-of-bounds buffer read
[musl] / src / ldso / __dlsym.c
index bf99dff..0384f97 100644 (file)
@@ -1,7 +1,5 @@
 #include <dlfcn.h>
-#include "libc.h"
-
-hidden void __dl_seterr(const char *, ...);
+#include "dynlink.h"
 
 static void *stub_dlsym(void *restrict p, const char *restrict s, void *restrict ra)
 {
@@ -10,3 +8,7 @@ static void *stub_dlsym(void *restrict p, const char *restrict s, void *restrict
 }
 
 weak_alias(stub_dlsym, __dlsym);
+
+#if _REDIR_TIME64
+weak_alias(stub_dlsym, __dlsym_redir_time64);
+#endif