]> git.pld-linux.org Git - packages/coreutils.git/blobdiff - coreutils-uname-cpuinfo.patch
- typo
[packages/coreutils.git] / coreutils-uname-cpuinfo.patch
index cee326b1e82aca655214462ad5b80eedb8de9a83..ca7aa602d3bd4e24d6bc043cf2e315e00f207dc6 100644 (file)
@@ -1,6 +1,7 @@
---- coreutils-4.5.3/src/uname.c.orig   Sat Aug 31 10:52:11 2002
-+++ coreutils-4.5.3/src/uname.c        Sun Oct 27 22:21:27 2002
-@@ -78,6 +78,8 @@
+diff -urN coreutils-5.2.1-orig/src/uname.c coreutils-5.2.1/src/uname.c
+--- coreutils-5.2.1-orig/src/uname.c   2005-01-15 19:15:36.193346304 +0100
++++ coreutils-5.2.1/src/uname.c        2005-01-15 19:19:06.918311240 +0100
+@@ -77,6 +77,8 @@
  /* Operating system.  */
  #define PRINT_OPERATING_SYSTEM 128
  
@@ -9,7 +10,7 @@
  /* The name this program was run with, for error messages. */
  char *program_name;
  
-@@ -240,13 +242,9 @@
+@@ -243,13 +245,9 @@
    if (toprint & PRINT_PROCESSOR)
      {
        char const *element = unknown;
@@ -26,7 +27,7 @@
  #ifdef UNAME_PROCESSOR
        if (element == unknown)
        {
-@@ -291,3 +289,38 @@
+@@ -294,3 +292,38 @@
  
    exit (EXIT_SUCCESS);
  }
 + #ifdef __sparc__
 +      if (!(strcmp(temp_string, "cpu"))) 
 + #endif /* __sparc__ */
-+ #ifdef __i386__
++ #if defined(__i386__) || defined(__x86_64__)
 +      if (!(strcmp(temp_string, "name"))) 
 + #endif /* __x86__ */
 + #ifdef __alpha__
-+      if (!(strcmp(temp_string, "string"))) 
++      if (!(strcmp(temp_string, "model"))) 
 + #endif /* __alpha__ */
 + {
 +         fgets(final_string, 64, ffd);
This page took 0.038273 seconds and 4 git commands to generate.