# --- T2-COPYRIGHT-BEGIN --- # t2/package/*/emacs/uclibc.patch.uclibc # Copyright (C) 2004 - 2026 The T2 SDE Project # SPDX-License-Identifier: GPL-2.0 or patched project license # --- T2-COPYRIGHT-END --- --- emacs-21.3/configure.orig 2005-01-23 17:17:09.000000000 -0800 +++ emacs-21.3/configure 2005-01-23 17:27:56.000000000 -0800 @@ -1649,6 +1649,7 @@ *-esix* ) opsys=esix ;; *-xenix* ) opsys=xenix ;; *-linux-gnu* ) opsys=gnu-linux ;; + *-linux-uclibc* ) opsys=gnu-linux ;; *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;; *-sco3.2v5* ) opsys=sco5 NON_GNU_CPP=/lib/cpp --- emacs-21.3/src/s/gnu-linux.h.orig 2005-02-03 03:51:53.000000000 +0000 +++ emacs-21.3/src/s/gnu-linux.h 2005-02-03 04:00:39.000000000 +0000 @@ -162,7 +162,7 @@ #else /* !_IO_STDIO_H */ /* old C++ iostream names */ #define GNU_LIBRARY_PENDING_OUTPUT_COUNT(FILE) \ - ((FILE)->_pptr - (FILE)->_pbase) + ((FILE)->__bufpos - (FILE)->__bufstart) #endif /* !_IO_STDIO_H */ #endif /* emacs */ --- emacs-21.3/src/gmalloc.c.orig 2005-02-03 05:38:59.000000000 +0000 +++ emacs-21.3/src/gmalloc.c 2005-02-03 05:39:12.000000000 +0000 @@ -1549,9 +1549,9 @@ #include #endif -#ifndef __GNU_LIBRARY__ +/*#ifndef __GNU_LIBRARY__*/ #define __sbrk sbrk -#endif +/*#endif*/ #ifdef __GNU_LIBRARY__ /* It is best not to declare this and cast its result on foreign operating