Mercurial > emacs
comparison src/s/aix4-2.h @ 65657:c6e45e9a83bf
* s/aix4-2.h (BROKEN_GET_CURRENT_DIR_NAME): Define
BROKEN_GET_CURRENT_DIR_NAME.
* sysdep.c (get_current_dir_name): Also define if
BROKEN_GET_CURRENT_DIR_NAME.
* m/ibmrs6000.h: Test for USG5, not USG5_4.
author | Dan Nicolaescu <dann@ics.uci.edu> |
---|---|
date | Fri, 23 Sep 2005 17:06:03 +0000 |
parents | 695cf19ef79e |
children | 43a8bd744de4 ee12d75eb214 |
comparison
equal
deleted
inserted
replaced
65656:55fcf5165d97 | 65657:c6e45e9a83bf |
---|---|
1 #include "aix4-1.h" | 1 #include "aix4-1.h" |
2 | 2 |
3 #undef ALIGN_DATA_RELOC | 3 #undef ALIGN_DATA_RELOC |
4 | 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 | |
5 /* arch-tag: 38fe75ea-6aef-42bd-8449-bc34d921a562 | 23 /* arch-tag: 38fe75ea-6aef-42bd-8449-bc34d921a562 |
6 (do not change this comment) */ | 24 (do not change this comment) */ |