diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-07-24 18:09:18 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-07-24 18:09:18 +0200 |
commit | 996cbb5f2bc4a6dc2a9168052efb730ade59f902 (patch) | |
tree | 254a98039d8e0481aa75581f1232fca862c5c035 /app/tools/ndk-compat/compat.h | |
parent | 8028d708cbf7d19f4bb6312eac731ad8c16182f0 (diff) |
tools: support ancient NDKs
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'app/tools/ndk-compat/compat.h')
-rw-r--r-- | app/tools/ndk-compat/compat.h | 16 |
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 + |