aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2024-02-20 13:28:07 +0000
committerRon Yorston <rmy@pobox.com>2024-02-20 13:28:07 +0000
commitda71f7c5761217d244ee9db4eeef8bdbddf7676e (patch)
treef9f99287320558cbd4d6bcd93cb4736dbd34fb2c
parent17992d06810a9b0c60bab404f720bbd7539bdb93 (diff)
downloadbusybox-w32-da71f7c5761217d244ee9db4eeef8bdbddf7676e.tar.gz
busybox-w32-da71f7c5761217d244ee9db4eeef8bdbddf7676e.tar.bz2
busybox-w32-da71f7c5761217d244ee9db4eeef8bdbddf7676e.zip
win32: fix uname(2) if ARM architecture is undefinedFRP-5301-gda71f7c57
Older versions of mingw don't define PROCESSOR_ARCHITECTURE_ARM64. Don't let this stop the build.
-rw-r--r--win32/uname.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/win32/uname.c b/win32/uname.c
index e2bcf41ba..9474e5c04 100644
--- a/win32/uname.c
+++ b/win32/uname.c
@@ -33,9 +33,11 @@ int uname(struct utsname *name)
33 name->machine[1] = '3'; 33 name->machine[1] = '3';
34 } 34 }
35 break; 35 break;
36#if defined(PROCESSOR_ARCHITECTURE_ARM64)
36 case PROCESSOR_ARCHITECTURE_ARM64: 37 case PROCESSOR_ARCHITECTURE_ARM64:
37 strcpy(name->machine, "aarch64"); 38 strcpy(name->machine, "aarch64");
38 break; 39 break;
40#endif
39 default: 41 default:
40 strcpy(name->machine, unk); 42 strcpy(name->machine, unk);
41 break; 43 break;