1
0
mirror of https://github.com/termux/termux-packages synced 2024-06-18 19:37:07 +00:00

oathtool: Fix for strerror_r

%ci:no-build
This commit is contained in:
Tee KOBAYASHI 2023-04-11 09:55:38 +09:00 committed by xtkoba
parent be328e5f74
commit adaf95cc47
2 changed files with 14 additions and 1 deletions

View File

@ -9,4 +9,3 @@ TERMUX_PKG_DEPENDS="xmlsec, zlib"
TERMUX_PKG_BREAKS="oathtool-dev"
TERMUX_PKG_REPLACES="oathtool-dev"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-pam"
TERMUX_PKG_ENABLE_CLANG16_PORTING=false

View File

@ -0,0 +1,14 @@
https://github.com/termux/termux-packages/issues/15852
--- a/liboath/gl/tests/strerror_r.c
+++ b/liboath/gl/tests/strerror_r.c
@@ -23,6 +23,9 @@
#define _NETBSD_SOURCE 1
/* Specification. */
+#ifdef __ANDROID__
+#undef _GNU_SOURCE
+#endif
#include <string.h>
#include <errno.h>