OpenSDE Packages Database (without history before r20070)
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.

75 lines
2.0 KiB

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