libdl: platform headers
Defining headers provides the most type safety.
Previously, libdl exposed APIs via extern. However, this is
errorprone. We have much better tools in the Android build
to guard API usage. Specifically, apps, mainline modules,
vendor code, and other unbundled code paths would avoid
using these headers.
Moving function to header as requested by NDK API Council
for new methods.
Future steps that would make sense would be cleaning up
dlext_private_tests and combining it here, and also
removing other 'extern' uses of libdl symbols.
Bug: 382285049
Test: links
Change-Id: I23eb1d8a2c3a81e4f2892a726c46be89f2c992fa
diff --git a/tests/dlext_test.cpp b/tests/dlext_test.cpp
index 8b26cb0..b8826c1 100644
--- a/tests/dlext_test.cpp
+++ b/tests/dlext_test.cpp
@@ -44,7 +44,7 @@
#include "bionic/mte.h"
#include "bionic/page.h"
#include "core_shared_libs.h"
-#include "dlext_private.h"
+#include "dlext_private_tests.h"
#include "dlfcn_symlink_support.h"
#include "gtest_globals.h"
#include "utils.h"