diff options
author | Ryan Prichard | 2018-07-19 19:43:32 -0500 |
---|---|---|
committer | Ryan Prichard | 2018-07-20 00:58:14 -0500 |
commit | d2fec76063d443641774bec5d978ad6384115d2b (patch) | |
tree | bccab7b0d30b17346c4234ade1d5deaf1127b4d2 /libsync | |
parent | 65e4751633c93a4dd897ab8427f9b8af7a99b301 (diff) | |
download | platform-system-core-d2fec76063d443641774bec5d978ad6384115d2b.tar.gz platform-system-core-d2fec76063d443641774bec5d978ad6384115d2b.tar.xz platform-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 @@ | |||
27 | #define ANDROID_SYNC_H | 27 | #define ANDROID_SYNC_H |
28 | 28 | ||
29 | #include <stdint.h> | 29 | #include <stdint.h> |
30 | #include <sys/cdefs.h> | ||
30 | 31 | ||
31 | #include <linux/sync_file.h> | 32 | #include <linux/sync_file.h> |
32 | 33 | ||
33 | __BEGIN_DECLS | 34 | __BEGIN_DECLS |
34 | 35 | ||
36 | #if __ANDROID_API__ >= 26 | ||
37 | |||
35 | /* Fences indicate the status of an asynchronous task. They are initially | 38 | /* Fences indicate the status of an asynchronous task. They are initially |
36 | * in unsignaled state (0), and make a one-time transition to either signaled | 39 | * in unsignaled state (0), and make a one-time transition to either signaled |
37 | * (1) or error (< 0) state. A sync file is a collection of one or more fences; | 40 | * (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 | |||
88 | /** Free a struct sync_file_info structure */ | 91 | /** Free a struct sync_file_info structure */ |
89 | void sync_file_info_free(struct sync_file_info* info) __INTRODUCED_IN(26); | 92 | void sync_file_info_free(struct sync_file_info* info) __INTRODUCED_IN(26); |
90 | 93 | ||
94 | #endif /* __ANDROID_API__ >= 26 */ | ||
95 | |||
91 | __END_DECLS | 96 | __END_DECLS |
92 | 97 | ||
93 | #endif /* ANDROID_SYNC_H */ | 98 | #endif /* ANDROID_SYNC_H */ |