Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6b97f7fc authored by Andrei Homescu's avatar Andrei Homescu
Browse files

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
parent ca2def9b
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -18,9 +18,12 @@

#include <android/binder_ibinder.h>
#include <android/binder_status.h>
#include <android/llndk-versioning.h>
#include <sys/cdefs.h>

#ifndef __TRUSTY__
#include <android/llndk-versioning.h>
#endif

__BEGIN_DECLS

enum AServiceManager_AddServiceFlag : uint32_t {
+1 −0
Original line number Diff line number Diff line
@@ -22,3 +22,4 @@
#define __END_DECLS __END_CDECLS

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