summaryrefslogtreecommitdiffhomepage
path: root/app/tools/ndk-compat/compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'app/tools/ndk-compat/compat.h')
-rw-r--r--app/tools/ndk-compat/compat.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/app/tools/ndk-compat/compat.h b/app/tools/ndk-compat/compat.h
new file mode 100644
index 00000000..91f5e7c9
--- /dev/null
+++ b/app/tools/ndk-compat/compat.h
@@ -0,0 +1,16 @@
+/* SPDX-License-Identifier: BSD
+ *
+ * Copyright (C) 2015-2018 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
+ *
+ */
+
+#if defined(__ANDROID_API__) && __ANDROID_API__ < 18
+#include <stdio.h>
+ssize_t getdelim(char **buf, size_t *bufsiz, int delimiter, FILE *fp);
+ssize_t getline(char **buf, size_t *bufsiz, FILE *fp);
+#endif
+
+#if defined(__ANDROID_API__) && __ANDROID_API__ < 24
+char *strchrnul(const char *s, int c);
+#endif
+