[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] malloc, realloc: fix recently-introduced #undef typos
From: |
Paul Eggert |
Subject: |
Re: [PATCH] malloc, realloc: fix recently-introduced #undef typos |
Date: |
Wed, 21 Apr 2021 11:54:52 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 |
On 4/18/21 4:24 PM, Paul Eggert wrote:
Yes, they were typos that caused infloops. But little harm done; I don't
think they escaped into any distributions.
Whoops, I take it back. Because those modules defined
_GL_USE_STDLIB_ALLOC, stdlib.h did not define malloc and realloc and so
the undefs were not needed. And as it was, realloc-gnu did not work on
AIX 7.1 because the realloc replacement assumed the malloc replacement.
I fixed this by installing the attached two patches. It's still a bit
messy but at least it works.
0001-malloc-simplify.patch
Description: Text Data
0002-realloc-port-to-AIX-7.1.patch
Description: Text Data