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.

51 lines
1.9 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../uclibc/pkg_patch/emacs-uclibc.patch
  5. # Copyright (C) 2006 The OpenSDE Project
  6. # Copyright (C) 2004 - 2006 The T2 SDE Project
  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. --- emacs-21.3/configure.orig 2005-01-23 17:17:09.000000000 -0800
  18. +++ emacs-21.3/configure 2005-01-23 17:27:56.000000000 -0800
  19. @@ -1649,6 +1649,7 @@
  20. *-esix* ) opsys=esix ;;
  21. *-xenix* ) opsys=xenix ;;
  22. *-linux-gnu* ) opsys=gnu-linux ;;
  23. + *-linux-uclibc* ) opsys=gnu-linux ;;
  24. *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
  25. *-sco3.2v5* ) opsys=sco5
  26. NON_GNU_CPP=/lib/cpp
  27. --- emacs-21.3/src/s/gnu-linux.h.orig 2005-02-03 03:51:53.000000000 +0000
  28. +++ emacs-21.3/src/s/gnu-linux.h 2005-02-03 04:00:39.000000000 +0000
  29. @@ -162,7 +162,7 @@
  30. #else /* !_IO_STDIO_H */
  31. /* old C++ iostream names */
  32. #define GNU_LIBRARY_PENDING_OUTPUT_COUNT(FILE) \
  33. - ((FILE)->_pptr - (FILE)->_pbase)
  34. + ((FILE)->__bufpos - (FILE)->__bufstart)
  35. #endif /* !_IO_STDIO_H */
  36. #endif /* emacs */
  37. --- emacs-21.3/src/gmalloc.c.orig 2005-02-03 05:38:59.000000000 +0000
  38. +++ emacs-21.3/src/gmalloc.c 2005-02-03 05:39:12.000000000 +0000
  39. @@ -1549,9 +1549,9 @@
  40. #include <malloc.h>
  41. #endif
  42. -#ifndef __GNU_LIBRARY__
  43. +/*#ifndef __GNU_LIBRARY__*/
  44. #define __sbrk sbrk
  45. -#endif
  46. +/*#endif*/
  47. #ifdef __GNU_LIBRARY__
  48. /* It is best not to declare this and cast its result on foreign operating