2018-07-24 18:09:18 +02:00
|
|
|
/* SPDX-License-Identifier: BSD
|
|
|
|
*
|
2023-03-21 15:41:11 +01:00
|
|
|
* Copyright © 2017-2023 WireGuard LLC. All Rights Reserved.
|
2018-07-24 18:09:18 +02:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#define FILE_IS_EMPTY
|
|
|
|
|
2023-03-22 14:26:39 +01:00
|
|
|
#if defined(__ANDROID_MIN_SDK_VERSION__) && __ANDROID_MIN_SDK_VERSION__ < 24
|
2018-07-24 18:09:18 +02:00
|
|
|
#undef FILE_IS_EMPTY
|
|
|
|
#include <string.h>
|
|
|
|
|
|
|
|
char *strchrnul(const char *s, int c)
|
|
|
|
{
|
|
|
|
char *x = strchr(s, c);
|
|
|
|
if (!x)
|
|
|
|
return (char *)s + strlen(s);
|
|
|
|
return x;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef FILE_IS_EMPTY
|
|
|
|
#undef FILE_IS_EMPTY
|
|
|
|
static char ____x __attribute__((unused));
|
|
|
|
#endif
|