1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by scripts/Create-CopyPatch.
4 # T2 SDE: package/*/xemacs/hotfix-glibc.patch
5 # Copyright (C) 2021 The T2 SDE Project
7 # More information can be found in the files COPYING and README.
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
15 # --- T2-COPYRIGHT-NOTE-END ---
17 --- xemacs-21.5.34/src/gmalloc.c.vanilla 2021-07-14 17:33:06.143824000 +0200
18 +++ xemacs-21.5.34/src/gmalloc.c 2021-07-14 17:36:04.803824000 +0200
24 +//#ifdef HAVE_UNISTD_H
29 #endif /* _MALLOC_INTERNAL. */
32 #if defined (__GNU_LIBRARY__) || defined (_LIBC)
34 #include <sys/cdefs.h>
35 -#if ! (defined (__GLIBC__) && (__GLIBC__ >= 2))
36 -extern size_t __getpagesize __P ((void));
39 #include "getpagesize.h"
40 #define __getpagesize() getpagesize()
43 /* It is best not to declare this and cast its result on foreign operating
44 systems with potentially hostile include files. */
45 #if !(defined(linux) && defined(sparc))
46 -extern __ptr_t __sbrk __P ((int increment));
47 +//extern __ptr_t __sbrk __P ((int increment));