Skip to content

Commit 6b97f7f

Browse files
committed
libbinder_ndk: Shim llndk-versioning on Trusty
Trusty does not provide the llndk-versioning.h header, so work around it by providing a no-op alternative to __INTRODUCED_IN_LLNDK Bug: 242243245 Test: build Trusty Change-Id: I9e13eb3d890d7cf4183468b822e4d5e4f9939006
1 parent ca2def9 commit 6b97f7f

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

libs/binder/ndk/include_platform/android/binder_manager.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,12 @@
1818

1919
#include <android/binder_ibinder.h>
2020
#include <android/binder_status.h>
21-
#include <android/llndk-versioning.h>
2221
#include <sys/cdefs.h>
2322

23+
#ifndef __TRUSTY__
24+
#include <android/llndk-versioning.h>
25+
#endif
26+
2427
__BEGIN_DECLS
2528

2629
enum AServiceManager_AddServiceFlag : uint32_t {

libs/binder/trusty/ndk/include/sys/cdefs.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@
2222
#define __END_DECLS __END_CDECLS
2323

2424
#define __INTRODUCED_IN(x) /* nothing on Trusty */
25+
#define __INTRODUCED_IN_LLNDK(x) /* nothing on Trusty */

0 commit comments

Comments
 (0)