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.

48 lines
1.8 KiB

  1. # --- T2-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # T2 SDE: package/.../dietlibc/patches/pkg_coreutils.patch
  5. # Copyright (C) 2004 - 2006 The T2 SDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- T2-COPYRIGHT-NOTE-END ---
  16. I guess non-pointer FILE is not portable at least it breaks with dietlibc ...
  17. - Rene Rebe <rene@exactcode.de>
  18. --- coreutils-5.2.1/src/paste.c.vanilla 2005-06-15 23:48:26.000000000 +0200
  19. +++ coreutils-5.2.1/src/paste.c 2005-06-15 23:48:49.000000000 +0200
  20. @@ -52,11 +52,11 @@
  21. /* Indicates that no delimiter should be added in the current position. */
  22. #define EMPTY_DELIM '\0'
  23. -static FILE dummy_closed;
  24. +static FILE* dummy_closed;
  25. /* Element marking a file that has reached EOF and been closed. */
  26. -#define CLOSED (&dummy_closed)
  27. +#define CLOSED (dummy_closed)
  28. -static FILE dummy_endlist;
  29. +static FILE* dummy_endlist;
  30. /* Element marking end of list of open files. */
  31. #define ENDLIST (&dummy_endlist)
  32. --- coreutils-5.2.1/lib/closeout.c 2003-07-19 10:04:28.000000000 +0200
  33. +++ coreutils-5.2.1-fixed/lib/closeout.c 2006-01-04 17:49:42.000000000 +0100
  34. @@ -77,7 +77,7 @@
  35. /* If the stream's error bit is clear and there is nothing to flush,
  36. then return right away. */
  37. - if (e && __fpending (stdout) == 0)
  38. + if (e /* && __fpending (stdout) == 0 */)
  39. return;
  40. if (fclose (stdout) != 0)