mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +00:00
Eliminate a harmless warning caused by recent changes to the dynamic
linker.
This commit is contained in:
parent
c8de9c0145
commit
e35eadfa4a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=9060
21
editors/xemacs20/files/patch-ag
Normal file
21
editors/xemacs20/files/patch-ag
Normal file
@ -0,0 +1,21 @@
|
||||
This patch eliminates a harmless warning which began to be emitted
|
||||
under FreeBSD-current when the dynamic linker was revamped to allocate
|
||||
its memory out of the application's arena.
|
||||
|
||||
--- src/unexfreebsd.c.orig Wed Dec 18 14:44:07 1996
|
||||
+++ src/unexfreebsd.c Thu Dec 11 18:06:31 1997
|
||||
@@ -680,13 +680,7 @@
|
||||
{
|
||||
unsigned long current_sbrk = (unsigned long) sbrk (0);
|
||||
|
||||
- if (sbrk_of_0_at_unexec < current_sbrk)
|
||||
- {
|
||||
- if (sbrk_of_0_at_unexec != 0)
|
||||
- fprintf (stderr, "Absurd new brk addr = 0x%x (current = 0x%x)\n",
|
||||
- sbrk_of_0_at_unexec, current_sbrk);
|
||||
- }
|
||||
- else
|
||||
+ if (sbrk_of_0_at_unexec > current_sbrk)
|
||||
{
|
||||
errno = 0;
|
||||
if (brk ((caddr_t) sbrk_of_0_at_unexec))
|
Loading…
Reference in New Issue
Block a user