From ddc16de86964d445309dd38175a85221c14f05ab Mon Sep 17 00:00:00 2001 From: Po Lu Date: Mon, 1 May 2023 11:28:22 +0800 Subject: Update Android port * Makefile.in (extraclean): Clean in exec as well. * configure.ac: Fix detection of absolute srcdir. Also, pass CFLAGS. * exec/Makefile.in: (.c.o): Add -I. so config.h can be found.:(.s.o): Don't create m4 temporary in srcdir. * exec/config-mips.m4.in (DADDI2, DADDI3): New macros. Define to substitute if as cannot assemble daddi. * exec/configure.ac (user_h): Look for user.h in asm/ as well. Use new user.h. Also look in ptrace.h on arm systems. Check if as supports daddi on mips64. * exec/exec.c (check_interpreter): Fix char signedness bug. * exec/loader-mips64el.s (__start): Use DADDI2 and DADDI3 for two- and 3-operand daddi. * exec/mipsel-user.h: Don't include sgidefs.h. * java/INSTALL: Document that m4 is now required. * src/android.c (android_rewrite_spawn_argv): Add missing NULL. --- exec/exec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'exec/exec.c') diff --git a/exec/exec.c b/exec/exec.c index e890179a9ab..662c8bf69d2 100644 --- a/exec/exec.c +++ b/exec/exec.c @@ -95,7 +95,7 @@ check_interpreter (const char *name, int fd, const char **extra) /* Strip leading whitespace. */ start = buffer; - while (*start && *start < 128 && isspace (*start)) + while (*start && ((unsigned char) *start) < 128 && isspace (*start)) ++start; /* Look for a newline character. */ -- cgit v1.2.1