summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Eltsin <eaeltsin@google.com>2021-03-10 12:40:48 +0100
committerEvgeny Eltsin <eaeltsin@google.com>2021-03-10 12:47:55 +0100
commit30c5f840c909f15b86cc314ba82fa8495dd53e88 (patch)
tree0f3823f6c503eeb3222cdad632dec8f8ea6e7604
parent60e0a78c720d089c0dd7c32dd7c7388112803ad9 (diff)
downloadnative_bridge_support-30c5f840c909f15b86cc314ba82fa8495dd53e88.tar.gz
Make __libc_set_target_sdk_version an empty function in the native bridge
Bug: 182221163 Test: bionic-unit-tests Change-Id: Ie37e404375e3da3d0fddbae66f19c59f68dd6d84
-rw-r--r--libc/Android.bp1
-rw-r--r--libc/__libc_set_target_sdk_version.cpp17
2 files changed, 18 insertions, 0 deletions
diff --git a/libc/Android.bp b/libc/Android.bp
index 82e7882..98e3594 100644
--- a/libc/Android.bp
+++ b/libc/Android.bp
@@ -40,6 +40,7 @@ cc_library {
"__cxa_thread_atexit_impl.cpp",
"__libc_add_main_thread.cpp",
"__libc_init_scudo.cpp",
+ "__libc_set_target_sdk_version.cpp",
"exit.c",
"malloc_init.cpp",
],
diff --git a/libc/__libc_set_target_sdk_version.cpp b/libc/__libc_set_target_sdk_version.cpp
new file mode 100644
index 0000000..2ca07e3
--- /dev/null
+++ b/libc/__libc_set_target_sdk_version.cpp
@@ -0,0 +1,17 @@
+/*
+ * Copyright (C) 2021 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+void __libc_set_target_sdk_version(int) {}