libtranscript: Fix configure for strict C99

%ci:no-build
This commit is contained in:
termux-pacman-bot
2023-04-09 20:30:59 +00:00
parent 302cef80dc
commit 5c2d685434
2 changed files with 21 additions and 1 deletions

View File

@@ -8,7 +8,6 @@ TERMUX_PKG_SRCURL=https://os.ghalkes.nl/dist/libtranscript-${TERMUX_PKG_VERSION}
TERMUX_PKG_SHA256=1f8c19f257da5d6fad0ed9a7e5bd2442819e910a19907c38e115116a3955f5fa
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--without-gettext"
TERMUX_PKG_ENABLE_CLANG16_PORTING=false
termux_step_post_get_source() {
sed -i 's/ -s / /g' Makefile.in

View File

@@ -0,0 +1,21 @@
https://github.com/termux/termux-packages/issues/15852
--- a/config.pkg
+++ b/config.pkg
@@ -66,6 +66,7 @@
#include <sys/types.h>
#include <stdint.h>
#include <dirent.h>
+#include <stdio.h>
int main(int argc, char *argv[]) {
DIR *dir;
@@ -74,7 +75,7 @@
dir = opendir(".");
entry = readdir(dir);
- puts(entry->d_name[0]);
+ puts(entry->d_name);
closedir(dir);
return 0;
}