android fix - libwg-go added
This commit is contained in:
parent
969fc899a0
commit
476aabe671
8 changed files with 619 additions and 0 deletions
15
client/android/wireguard/ndk-compat/compat.h
Normal file
15
client/android/wireguard/ndk-compat/compat.h
Normal file
|
@ -0,0 +1,15 @@
|
|||
/* SPDX-License-Identifier: BSD
|
||||
*
|
||||
* Copyright © 2017-2019 WireGuard LLC. 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
|
Loading…
Add table
Add a link
Reference in a new issue