Restore the libsync __ANDROID_API__ guard
Partially reverts 2a358106b7
Bug: http://b/111668906
Test: m
Change-Id: Ic35091e10edda12a97992fbeffefda7ddf1305a1
This commit is contained in:
parent
65e4751633
commit
d2fec76063
1 changed files with 5 additions and 0 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue