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.

77 lines
2.1 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 - 2006 Clifford Wolf
  10. #
  11. # This patch file is dual-licensed. It is available under the license the
  12. # patched project is licensed under, as long as it is an OpenSource license
  13. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  14. # of the GNU General Public License as published by the Free Software
  15. # Foundation; either version 2 of the License, or (at your option) any later
  16. # version.
  17. #
  18. # --- ROCK-COPYRIGHT-NOTE-END ---
  19. --- ./errors.c 2000-05-16 09:10:57.000000000 -0500
  20. +++ ./errors.c 2002-12-19 20:51:14.000000000 -0500
  21. @@ -29,21 +29,24 @@
  22. #include <stdio.h>
  23. // for exit()
  24. -#ifndef __linux__
  25. #include <stdlib.h>
  26. -#endif
  27. -// for strrchr
  28. +
  29. +// for strrchr and strerror
  30. #include <string.h>
  31. // for va_start(), etc.
  32. #include <stdarg.h>
  33. +// for errno
  34. +#include <errno.h>
  35. +
  36. #include "errors.h"
  37. //
  38. // Defines
  39. //
  40. +#define sys_nerr errno
  41. //
  42. @@ -134,7 +137,7 @@
  43. #if defined(__linux__) || defined(NeXT) || defined(__unix__)
  44. if (value > 0 && value < sys_nerr) {
  45. - fprintf(stderr, " (%s)\n", sys_errlist[value]);
  46. + fprintf(stderr, " (%s)\n", strerror(value));
  47. } else {
  48. fprintf(stderr, "\n");
  49. }
  50. @@ -163,7 +166,7 @@
  51. #if defined(__linux__) || defined(NeXT) || defined(__unix__)
  52. if (value > 0 && value < sys_nerr) {
  53. - fprintf(stderr, " (%s)\n", sys_errlist[value]);
  54. + fprintf(stderr, " (%s)\n", strerror(value));
  55. } else {
  56. fprintf(stderr, "\n");
  57. }
  58. --- ./file_media.c 2000-05-16 09:10:55.000000000 -0500
  59. +++ ./file_media.c 2002-12-19 20:48:18.000000000 -0500
  60. @@ -58,6 +58,7 @@
  61. * Defines
  62. */
  63. #ifdef __linux__
  64. +#define llseek lseek64
  65. #define LOFF_MAX 9223372036854775807LL
  66. extern __loff_t llseek __P ((int __fd, __loff_t __offset, int __whence));
  67. #else