From adc613d8011af7c508050badb1272e8326554c39 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Mon, 9 Mar 2020 19:00:14 +0530 Subject: Migrate tunnel related classes to tunnel/ Gradle module Signed-off-by: Harsh Shandilya --- tunnel/tools/ndk-compat/compat.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 tunnel/tools/ndk-compat/compat.h (limited to 'tunnel/tools/ndk-compat/compat.h') diff --git a/tunnel/tools/ndk-compat/compat.h b/tunnel/tools/ndk-compat/compat.h new file mode 100644 index 00000000..52f6c127 --- /dev/null +++ b/tunnel/tools/ndk-compat/compat.h @@ -0,0 +1,16 @@ +/* SPDX-License-Identifier: BSD + * + * Copyright © 2017-2019 WireGuard LLC. All Rights Reserved. + * + */ + +#if defined(__ANDROID_API__) && __ANDROID_API__ < 18 +#include +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 + -- cgit v1.2.3