summaryrefslogtreecommitdiff
path: root/include/android/sharedmem.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/android/sharedmem.h')
-rw-r--r--include/android/sharedmem.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/android/sharedmem.h b/include/android/sharedmem.h
index 0354f17f48..b772f7093c 100644
--- a/include/android/sharedmem.h
+++ b/include/android/sharedmem.h
@@ -27,6 +27,7 @@
#define ANDROID_SHARED_MEMORY_H
#include <stddef.h>
+#include <sys/cdefs.h>
/******************************************************************
*
@@ -52,6 +53,8 @@
extern "C" {
#endif
+#if __ANDROID_API__ >= 26
+
/**
* Create a shared memory region.
*
@@ -106,6 +109,8 @@ size_t ASharedMemory_getSize(int fd) __INTRODUCED_IN(26);
*/
int ASharedMemory_setProt(int fd, int prot) __INTRODUCED_IN(26);
+#endif // __ANDROID_API__ >= 26
+
#ifdef __cplusplus
};
#endif