aboutsummaryrefslogtreecommitdiffstats
path: root/src/s
diff options
context:
space:
mode:
authorDan Nicolaescu2005-09-23 17:06:03 +0000
committerDan Nicolaescu2005-09-23 17:06:03 +0000
commit3480d92bb007bebdb644afbe667a02c00edbb334 (patch)
tree8279dd47c15f639a6bb55eee0f0b3bd5f41b20c1 /src/s
parentbc07911a4be5cbb60f4019067fc60249020c78b2 (diff)
downloademacs-3480d92bb007bebdb644afbe667a02c00edbb334.tar.gz
emacs-3480d92bb007bebdb644afbe667a02c00edbb334.zip
* 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.
Diffstat (limited to 'src/s')
-rw-r--r--src/s/aix4-2.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/s/aix4-2.h b/src/s/aix4-2.h
index 66b7d322b56..02225a9226f 100644
--- a/src/s/aix4-2.h
+++ b/src/s/aix4-2.h
@@ -2,5 +2,23 @@
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) */