diff options
| author | Glenn Morris | 2012-07-11 22:14:29 -0400 |
|---|---|---|
| committer | Glenn Morris | 2012-07-11 22:14:29 -0400 |
| commit | 42bd17194ca4b88032fb8b74aaf33b94b4353703 (patch) | |
| tree | 341d6029243129f5c4aa1e5c6bee8ba6cc1d7e1f /src | |
| parent | 7ccad0028b6c1ee6c694332f70cb067a8169ab1e (diff) | |
| download | emacs-42bd17194ca4b88032fb8b74aaf33b94b4353703.tar.gz emacs-42bd17194ca4b88032fb8b74aaf33b94b4353703.zip | |
Move more things from src/s to configure
* configure.ac (BROKEN_GET_CURRENT_DIR_NAME, BROKEN_PTY_READ_AFTER_EAGAIN)
(G_SLICE_ALWAYS_MALLOC): Move here from src/s.
* src/s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN):
* src/s/cygwin.h (G_SLICE_ALWAYS_MALLOC):
* src/s/aix4-2.h (BROKEN_GET_CURRENT_DIR_NAME): Let configure set them.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/s/aix4-2.h | 17 | ||||
| -rw-r--r-- | src/s/cygwin.h | 6 | ||||
| -rw-r--r-- | src/s/freebsd.h | 15 |
4 files changed, 3 insertions, 39 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 6aa14c96198..52e9364f6ea 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | 2012-07-12 Glenn Morris <rgm@gnu.org> | 1 | 2012-07-12 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): | ||
| 4 | * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): | ||
| 3 | * s/irix6-5.h (SETPGRP_RELEASES_CTTY, PREFER_VSUSP): | 5 | * s/irix6-5.h (SETPGRP_RELEASES_CTTY, PREFER_VSUSP): |
| 4 | * s/hpux10-20.h (RUN_TIME_REMAP): | 6 | * s/hpux10-20.h (RUN_TIME_REMAP): |
| 5 | * s/bsd-common.h (TABDLY): Move to configure. | 7 | * s/bsd-common.h (TABDLY): Move to configure. |
| @@ -9,7 +11,7 @@ | |||
| 9 | * s/bsd-common.h, s/darwin.h: Move TAB3 to configure. | 11 | * s/bsd-common.h, s/darwin.h: Move TAB3 to configure. |
| 10 | 12 | ||
| 11 | * s/aix4-2.h (BROKEN_FIONREAD, BROKEN_SIGAIO, BROKEN_SIGPTY) | 13 | * s/aix4-2.h (BROKEN_FIONREAD, BROKEN_SIGAIO, BROKEN_SIGPTY) |
| 12 | (BROKEN_SIGPOLL): Let configure set them. | 14 | (BROKEN_SIGPOLL, BROKEN_GET_CURRENT_DIR_NAME): Let configure set them. |
| 13 | 15 | ||
| 14 | * s/darwin.h (NO_ABORT, NO_MATHERR): Let configure set them. | 16 | * s/darwin.h (NO_ABORT, NO_MATHERR): Let configure set them. |
| 15 | 17 | ||
diff --git a/src/s/aix4-2.h b/src/s/aix4-2.h index ec7a1eeb0b8..4287eea9dcc 100644 --- a/src/s/aix4-2.h +++ b/src/s/aix4-2.h | |||
| @@ -43,23 +43,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 43 | #define NO_EDITRES | 43 | #define NO_EDITRES |
| 44 | #endif | 44 | #endif |
| 45 | 45 | ||
| 46 | /* On AIX Emacs uses the gmalloc.c malloc implementation. But given | ||
| 47 | the way this system works, libc functions that return malloced | ||
| 48 | memory use the libc malloc implementation. Calling xfree or | ||
| 49 | xrealloc on the results of such functions results in a crash. | ||
| 50 | |||
| 51 | One solution for this could be to define SYSTEM_MALLOC in configure, | ||
| 52 | but that does not currently work on this system. | ||
| 53 | |||
| 54 | It is possible to completely override the malloc implementation on | ||
| 55 | AIX, but that involves putting the malloc functions in a shared | ||
| 56 | library and setting the MALLOCTYPE environment variable to point to | ||
| 57 | that shared library. | ||
| 58 | |||
| 59 | Emacs currently calls xrealloc on the results of get_current_dir name, | ||
| 60 | to avoid a crash just use the Emacs implementation for that function. */ | ||
| 61 | #define BROKEN_GET_CURRENT_DIR_NAME 1 | ||
| 62 | |||
| 63 | /* Conservative garbage collection has not been tested, so for now | 46 | /* Conservative garbage collection has not been tested, so for now |
| 64 | play it safe and stick with the old-fashioned way of marking. */ | 47 | play it safe and stick with the old-fashioned way of marking. */ |
| 65 | #define GC_MARK_STACK GC_USE_GCPROS_AS_BEFORE | 48 | #define GC_MARK_STACK GC_USE_GCPROS_AS_BEFORE |
diff --git a/src/s/cygwin.h b/src/s/cygwin.h index 0c9bfe203b1..fb5d3b08f4e 100644 --- a/src/s/cygwin.h +++ b/src/s/cygwin.h | |||
| @@ -36,9 +36,3 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 36 | 36 | ||
| 37 | /* Used in various places to enable cygwin-specific code changes. */ | 37 | /* Used in various places to enable cygwin-specific code changes. */ |
| 38 | #define CYGWIN 1 | 38 | #define CYGWIN 1 |
| 39 | |||
| 40 | /* Emacs supplies its own malloc, but glib (part of Gtk+) calls | ||
| 41 | memalign and on Cygwin, that becomes the Cygwin-supplied memalign. | ||
| 42 | As malloc is not the Cygwin malloc, the Cygwin memalign always | ||
| 43 | returns ENOSYS. A workaround is to set G_SLICE=always-malloc. */ | ||
| 44 | #define G_SLICE_ALWAYS_MALLOC | ||
diff --git a/src/s/freebsd.h b/src/s/freebsd.h index b6bd160cc91..8200238bf1f 100644 --- a/src/s/freebsd.h +++ b/src/s/freebsd.h | |||
| @@ -33,21 +33,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 33 | #define BSD_SYSTEM 199506 | 33 | #define BSD_SYSTEM 199506 |
| 34 | #endif | 34 | #endif |
| 35 | 35 | ||
| 36 | /* Circumvent a bug in FreeBSD. In the following sequence of | ||
| 37 | writes/reads on a PTY, read(2) returns bogus data: | ||
| 38 | |||
| 39 | write(2) 1022 bytes | ||
| 40 | write(2) 954 bytes, get EAGAIN | ||
| 41 | read(2) 1024 bytes in process_read_output | ||
| 42 | read(2) 11 bytes in process_read_output | ||
| 43 | |||
| 44 | That is, read(2) returns more bytes than have ever been written | ||
| 45 | successfully. The 1033 bytes read are the 1022 bytes written | ||
| 46 | successfully after processing (for example with CRs added if the | ||
| 47 | terminal is set up that way which it is here). The same bytes will | ||
| 48 | be seen again in a later read(2), without the CRs. */ | ||
| 49 | #define BROKEN_PTY_READ_AFTER_EAGAIN 1 | ||
| 50 | |||
| 51 | /* Tell that garbage collector that setjmp is known to save all | 36 | /* Tell that garbage collector that setjmp is known to save all |
| 52 | registers relevant for conservative garbage collection in the jmp_buf. */ | 37 | registers relevant for conservative garbage collection in the jmp_buf. */ |
| 53 | #define GC_SETJMP_WORKS 1 | 38 | #define GC_SETJMP_WORKS 1 |