X-Git-Url: https://git.tld-linux.org/?a=blobdiff_plain;f=coreutils-uname-cpuinfo.patch;h=c882d59c461dfdaf5786ce3d0b1f8613ea3bae51;hb=HEAD;hp=b6b83c03383d50e02ebdcd42e335a61cf1e244fe;hpb=720469fe3cdd25cba54a22419021a4eb180e1a6c;p=packages%2Fcoreutils.git diff --git a/coreutils-uname-cpuinfo.patch b/coreutils-uname-cpuinfo.patch index b6b83c0..c882d59 100644 --- a/coreutils-uname-cpuinfo.patch +++ b/coreutils-uname-cpuinfo.patch @@ -9,21 +9,22 @@ diff -urNp -x '*.orig' coreutils-8.32.org/src/uname.c coreutils-8.32/src/uname.c + static struct option const uname_long_options[] = { - {"all", no_argument, NULL, 'a'}, -@@ -301,13 +303,9 @@ main (int argc, char **argv) - if (toprint & PRINT_PROCESSOR) - { - char const *element = unknown; + {"all", no_argument, nullptr, 'a'}, +@@ -323,14 +323,12 @@ + element = "powerpc"; + # endif + #endif -#if HAVE_SYSINFO && defined SI_ARCHITECTURE -- { -- static char processor[257]; -- if (0 <= sysinfo (SI_ARCHITECTURE, processor, sizeof processor)) -- element = processor; -- } + if (element == unknown) + { +- static char processor[257]; +- if (0 <= sysinfo (SI_ARCHITECTURE, processor, sizeof processor)) +- element = processor; ++ char processor[BUFSIZ]; ++ __sysinfo_processor_type(processor); ++ element = processor; + } -#endif -+ char processor[BUFSIZ]; -+ __sysinfo_processor_type(processor); -+ element = processor; #ifdef UNAME_PROCESSOR if (element == unknown) {