diff options
author | Ryan Prichard <rprichard@google.com> | 2018-07-19 17:43:32 -0700 |
---|---|---|
committer | Ryan Prichard <rprichard@google.com> | 2018-07-19 22:58:14 -0700 |
commit | d2fec76063d443641774bec5d978ad6384115d2b (patch) | |
tree | bccab7b0d30b17346c4234ade1d5deaf1127b4d2 /libsync | |
parent | 65e4751633c93a4dd897ab8427f9b8af7a99b301 (diff) | |
download | system_core-d2fec76063d443641774bec5d978ad6384115d2b.tar.gz system_core-d2fec76063d443641774bec5d978ad6384115d2b.tar.bz2 system_core-d2fec76063d443641774bec5d978ad6384115d2b.zip |
Restore the libsync __ANDROID_API__ guard
Partially reverts 2a358106b7e554396088506e8e817520e2882aee
Bug: http://b/111668906
Test: m
Change-Id: Ic35091e10edda12a97992fbeffefda7ddf1305a1
Diffstat (limited to 'libsync')
-rw-r--r-- | libsync/include/ndk/sync.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libsync/include/ndk/sync.h b/libsync/include/ndk/sync.h index 49f01e142..ba7d8c4db 100644 --- a/libsync/include/ndk/sync.h +++ b/libsync/include/ndk/sync.h @@ -27,11 +27,14 @@ #define ANDROID_SYNC_H #include <stdint.h> +#include <sys/cdefs.h> #include <linux/sync_file.h> __BEGIN_DECLS +#if __ANDROID_API__ >= 26 + /* Fences indicate the status of an asynchronous task. They are initially * in unsignaled state (0), and make a one-time transition to either signaled * (1) or error (< 0) state. A sync file is a collection of one or more fences; @@ -88,6 +91,8 @@ static inline struct sync_fence_info* sync_get_fence_info(const struct sync_file /** Free a struct sync_file_info structure */ void sync_file_info_free(struct sync_file_info* info) __INTRODUCED_IN(26); +#endif /* __ANDROID_API__ >= 26 */ + __END_DECLS #endif /* ANDROID_SYNC_H */ |