uucp: Fix `configure` for strict C99

%ci:no-build
This commit is contained in:
Tee KOBAYASHI 2023-04-10 03:43:10 +09:00 committed by xtkoba
parent 57d12b5623
commit 28b8446479
2 changed files with 44 additions and 1 deletions

View File

@ -10,4 +10,3 @@ TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
--infodir=$TERMUX_PREFIX/share/info
--mandir=$TERMUX_PREFIX/share/man
"
TERMUX_PKG_ENABLE_CLANG16_PORTING=false

View File

@ -0,0 +1,44 @@
https://github.com/termux/termux-packages/issues/15852
--- a/configure
+++ b/configure
@@ -1280,6 +1280,7 @@
#line 1281 "configure"
#include "confdefs.h"
+int
main(){return(0);}
EOF
if { (eval echo configure:1286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
@@ -3026,6 +3027,7 @@
#line 3027 "configure"
#include "confdefs.h"
+void exit();
int main() {
extern void foo (); (void) exit (0);
; return 0; }
@@ -3154,6 +3156,7 @@
#line 3155 "configure"
#include "confdefs.h"
+void *memset();
int main() {
char *i; int j, k; memset(i, j, k);
; return 0; }
@@ -3186,6 +3189,7 @@
#line 3187 "configure"
#include "confdefs.h"
+int memcmp();
int main() {
char *i, *j; int k; memcmp(i, j, k);
; return 0; }
@@ -3218,6 +3222,7 @@
#line 3219 "configure"
#include "confdefs.h"
+void *memcpy();
int main() {
char *i, *j; int k; memcpy(i, j, k);
; return 0; }