Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit cce5437

Browse files
committed
Reapply "Stop using versioner."
With the new module excluded from C compat checks for similar reasons as the other bionic modules. This reverts commit 106afcd. Bug: None Test: None Change-Id: I9cdf2ca206b1bc0a516fdfc9d23cc35cc39d87c1
1 parent 52c2aab commit cce5437

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

libc/Android.bp

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2231,11 +2231,17 @@ cc_library_static {
22312231
// NDK headers.
22322232
// ========================================================
22332233

2234-
versioned_ndk_headers {
2234+
ndk_headers {
22352235
name: "common_libc",
22362236
from: "include",
22372237
to: "",
2238+
srcs: ["include/**/*.h"],
22382239
license: "NOTICE",
2240+
// These don't pass the bad verification we do because many of them are
2241+
// arch-specific, and they aren't necessarily independently includable.
2242+
// That's not much of a problem though, since C-incompaitibilities in the
2243+
// UAPI headers should run into problems long before they reach us.
2244+
skip_verification: true,
22392245
}
22402246

22412247
ndk_headers {
@@ -2255,10 +2261,6 @@ ndk_headers {
22552261
"kernel/uapi/xen/**/*.h",
22562262
],
22572263
license: "NOTICE",
2258-
// These don't pass the bad verification we do because many of them are
2259-
// arch-specific, and they aren't necessarily independently includable.
2260-
// That's not much of a problem though, since C-incompaitibilities in the
2261-
// UAPI headers should run into problems long before they reach us.
22622264
skip_verification: true,
22632265
}
22642266

libc/include/malloc.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ void* _Nullable calloc(size_t __item_count, size_t __item_size) __mallocfunc __B
7676
*/
7777
void* _Nullable realloc(void* _Nullable __ptr, size_t __byte_count) __BIONIC_ALLOC_SIZE(2) __wur;
7878

79+
// Remove the explicit guard once //external/giflib has been fixed so that it no
80+
// longer provides a conflicting definition: http://b/352784252
81+
#if __ANDROID_API__ >= 29
7982
/**
8083
* [reallocarray(3)](https://man7.org/linux/man-pages/man3/realloc.3.html) resizes
8184
* allocated memory on the heap.
@@ -88,6 +91,7 @@ void* _Nullable realloc(void* _Nullable __ptr, size_t __byte_count) __BIONIC_ALL
8891
* (but see the notes for malloc()).
8992
*/
9093
void* _Nullable reallocarray(void* _Nullable __ptr, size_t __item_count, size_t __item_size) __BIONIC_ALLOC_SIZE(2, 3) __wur __INTRODUCED_IN(29);
94+
#endif
9195

9296
/**
9397
* [free(3)](https://man7.org/linux/man-pages/man3/free.3.html) deallocates

0 commit comments

Comments
 (0)