* s/aix4-2.h (BROKEN_GET_CURRENT_DIR_NAME): Define
[bpt/emacs.git] / src / s / aix4-2.h
1 #include "aix4-1.h"
2
3 #undef ALIGN_DATA_RELOC
4
5 /* On AIX Emacs uses the gmalloc.c malloc implementation. But given
6 the way this system works, libc functions that return malloced
7 memory use the libc malloc implementation. Calling xfree or
8 xrealloc on the results of such functions results in a crash.
9
10 One solution for this could be to define SYSTEM_MALLOC here, but
11 that does not currently work on this system.
12
13 It is possible to completely override the malloc implementation on
14 AIX, but that involves putting the malloc functions in a shared
15 library and setting the MALLOCTYPE environment variable to point to
16 tha shared library.
17
18 Emacs currently calls xrealloc on the results of get_current_dir name,
19 to avoid a crash just use the Emacs implementation for that function.
20 */
21 #define BROKEN_GET_CURRENT_DIR_NAME 1
22
23 /* arch-tag: 38fe75ea-6aef-42bd-8449-bc34d921a562
24 (do not change this comment) */