Dash:
[t2.git] / package / editors / xemacs / hotfix-glibc.patch
blob5b11f6f28c22ba2a7022e5e9a63cf432a9fee937
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by scripts/Create-CopyPatch.
3 #
4 # T2 SDE: package/*/xemacs/hotfix-glibc.patch
5 # Copyright (C) 2021 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 ---
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
19 @@ -69,9 +69,9 @@
20 #include <string.h>
21 #include <limits.h>
23 -#ifdef HAVE_UNISTD_H
24 +//#ifdef HAVE_UNISTD_H
25 #include <unistd.h>
26 -#endif
27 +//#endif
29 #endif /* _MALLOC_INTERNAL. */
31 @@ -319,10 +319,6 @@
32 #if defined (__GNU_LIBRARY__) || defined (_LIBC)
33 #include <stddef.h>
34 #include <sys/cdefs.h>
35 -#if ! (defined (__GLIBC__) && (__GLIBC__ >= 2))
36 -extern size_t __getpagesize __P ((void));
37 -#endif
38 -#else
39 #include "getpagesize.h"
40 #define __getpagesize() getpagesize()
41 #endif
42 @@ -1207,7 +1203,7 @@
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));
48 #endif
49 #endif