mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

80 lines
2.2 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/powerpc/pdisk/code_update.patch
  9. # ROCK Linux is Copyright (C) 1998 - 2003 Clifford Wolf
  10. #
  11. # This program is free software; you can redistribute it and/or modify
  12. # it under the terms of the GNU General Public License as published by
  13. # the Free Software Foundation; either version 2 of the License, or
  14. # (at your option) any later version. A copy of the GNU General Public
  15. # License can be found at Documentation/COPYING.
  16. #
  17. # Many people helped and are helping developing ROCK Linux. Please
  18. # have a look at http://www.rocklinux.org/ and the Documentation/TEAM
  19. # file for details.
  20. #
  21. # --- ROCK-COPYRIGHT-NOTE-END ---
  22. --- ./errors.c 2000-05-16 09:10:57.000000000 -0500
  23. +++ ./errors.c 2002-12-19 20:51:14.000000000 -0500
  24. @@ -29,21 +29,24 @@
  25. #include <stdio.h>
  26. // for exit()
  27. -#ifndef __linux__
  28. #include <stdlib.h>
  29. -#endif
  30. -// for strrchr
  31. +
  32. +// for strrchr and strerror
  33. #include <string.h>
  34. // for va_start(), etc.
  35. #include <stdarg.h>
  36. +// for errno
  37. +#include <errno.h>
  38. +
  39. #include "errors.h"
  40. //
  41. // Defines
  42. //
  43. +#define sys_nerr errno
  44. //
  45. @@ -134,7 +137,7 @@
  46. #if defined(__linux__) || defined(NeXT) || defined(__unix__)
  47. if (value > 0 && value < sys_nerr) {
  48. - fprintf(stderr, " (%s)\n", sys_errlist[value]);
  49. + fprintf(stderr, " (%s)\n", strerror(value));
  50. } else {
  51. fprintf(stderr, "\n");
  52. }
  53. @@ -163,7 +166,7 @@
  54. #if defined(__linux__) || defined(NeXT) || defined(__unix__)
  55. if (value > 0 && value < sys_nerr) {
  56. - fprintf(stderr, " (%s)\n", sys_errlist[value]);
  57. + fprintf(stderr, " (%s)\n", strerror(value));
  58. } else {
  59. fprintf(stderr, "\n");
  60. }
  61. --- ./file_media.c 2000-05-16 09:10:55.000000000 -0500
  62. +++ ./file_media.c 2002-12-19 20:48:18.000000000 -0500
  63. @@ -58,6 +58,7 @@
  64. * Defines
  65. */
  66. #ifdef __linux__
  67. +#define llseek lseek64
  68. #define LOFF_MAX 9223372036854775807LL
  69. extern __loff_t llseek __P ((int __fd, __loff_t __offset, int __whence));
  70. #else