aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ChangeLog10
-rw-r--r--src/m/ibmrs6000.h2
-rw-r--r--src/s/aix4-2.h18
-rw-r--r--src/sysdep.c2
4 files changed, 30 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 62e82540ac9..2260e004f23 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,13 @@
12005-09-23 Dan Nicolaescu <dann@ics.uci.edu>
2
3 * s/aix4-2.h (BROKEN_GET_CURRENT_DIR_NAME): Define
4 BROKEN_GET_CURRENT_DIR_NAME.
5
6 * sysdep.c (get_current_dir_name): Also define if
7 BROKEN_GET_CURRENT_DIR_NAME.
8
9 * m/ibmrs6000.h: Test for USG5, not USG5_4.
10
12005-09-22 Kim F. Storm <storm@cua.dk> 112005-09-22 Kim F. Storm <storm@cua.dk>
2 12
3 * xdisp.c (message_dolog): Add warning about GC and Lisp strings. 13 * xdisp.c (message_dolog): Add warning about GC and Lisp strings.
diff --git a/src/m/ibmrs6000.h b/src/m/ibmrs6000.h
index 9559f1ae62a..0ff702d090d 100644
--- a/src/m/ibmrs6000.h
+++ b/src/m/ibmrs6000.h
@@ -112,7 +112,7 @@ Boston, MA 02110-1301, USA. */
112#define OBJECTS_MACHINE hftctl.o 112#define OBJECTS_MACHINE hftctl.o
113#endif 113#endif
114 114
115#ifndef USG5_4 115#ifndef USG5
116#define C_SWITCH_MACHINE -D_BSD 116#define C_SWITCH_MACHINE -D_BSD
117#endif 117#endif
118 118
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) */
diff --git a/src/sysdep.c b/src/sysdep.c
index eae493ba453..f70d4b18cff 100644
--- a/src/sysdep.c
+++ b/src/sysdep.c
@@ -256,7 +256,7 @@ void hft_reset ();
256SIGMASKTYPE sigprocmask_set; 256SIGMASKTYPE sigprocmask_set;
257 257
258 258
259#ifndef HAVE_GET_CURRENT_DIR_NAME 259#if !defined (HAVE_GET_CURRENT_DIR_NAME) || defined (BROKEN_GET_CURRENT_DIR_NAME)
260 260
261/* Return the current working directory. Returns NULL on errors. 261/* Return the current working directory. Returns NULL on errors.
262 Any other returned value must be freed with free. This is used 262 Any other returned value must be freed with free. This is used