diff options
| author | Stefan Monnier | 2011-03-21 12:42:16 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2011-03-21 12:42:16 -0400 |
| commit | cafdcef32d55cbb44389d7e322e7f973cbb72dfd (patch) | |
| tree | 7ee0c41ea8a589650ce6f4311fb10e61a63807b9 /src/s | |
| parent | a08a25d7aaf251aa18f2ef747be53734bc55cae9 (diff) | |
| parent | 4e05e67e4cd0bc1b0a4ef3176a4d0d91c6b3738e (diff) | |
| download | emacs-cafdcef32d55cbb44389d7e322e7f973cbb72dfd.tar.gz emacs-cafdcef32d55cbb44389d7e322e7f973cbb72dfd.zip | |
Merge from trunk
Diffstat (limited to 'src/s')
| -rw-r--r-- | src/s/aix4-2.h | 2 | ||||
| -rw-r--r-- | src/s/cygwin.h | 3 | ||||
| -rw-r--r-- | src/s/darwin.h | 3 | ||||
| -rw-r--r-- | src/s/gnu-linux.h | 2 | ||||
| -rw-r--r-- | src/s/irix6-5.h | 3 |
5 files changed, 5 insertions, 8 deletions
diff --git a/src/s/aix4-2.h b/src/s/aix4-2.h index 443fc034570..c2715fffe01 100644 --- a/src/s/aix4-2.h +++ b/src/s/aix4-2.h | |||
| @@ -32,7 +32,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 32 | 32 | ||
| 33 | /* In AIX, you allocate a pty by opening /dev/ptc to get the master side. | 33 | /* In AIX, you allocate a pty by opening /dev/ptc to get the master side. |
| 34 | To get the name of the slave side, you just ttyname() the master side. */ | 34 | To get the name of the slave side, you just ttyname() the master side. */ |
| 35 | #define PTY_ITERATION for (c = 0; !c ; c++) | 35 | #define PTY_ITERATION int c; for (c = 0; !c ; c++) |
| 36 | #define PTY_NAME_SPRINTF strcpy (pty_name, "/dev/ptc"); | 36 | #define PTY_NAME_SPRINTF strcpy (pty_name, "/dev/ptc"); |
| 37 | #define PTY_TTY_NAME_SPRINTF strcpy (pty_name, ttyname (fd)); | 37 | #define PTY_TTY_NAME_SPRINTF strcpy (pty_name, ttyname (fd)); |
| 38 | 38 | ||
diff --git a/src/s/cygwin.h b/src/s/cygwin.h index ceebe23f1e7..af5308ff7bb 100644 --- a/src/s/cygwin.h +++ b/src/s/cygwin.h | |||
| @@ -46,7 +46,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 46 | 46 | ||
| 47 | /* Define HAVE_PTYS if the system supports pty devices. */ | 47 | /* Define HAVE_PTYS if the system supports pty devices. */ |
| 48 | #define HAVE_PTYS | 48 | #define HAVE_PTYS |
| 49 | #define PTY_ITERATION for (i = 0; i < 1; i++) /* ick */ | 49 | #define PTY_ITERATION int i; for (i = 0; i < 1; i++) /* ick */ |
| 50 | #define PTY_NAME_SPRINTF /* none */ | 50 | #define PTY_NAME_SPRINTF /* none */ |
| 51 | #define PTY_TTY_NAME_SPRINTF /* none */ | 51 | #define PTY_TTY_NAME_SPRINTF /* none */ |
| 52 | #define PTY_OPEN \ | 52 | #define PTY_OPEN \ |
| @@ -102,4 +102,3 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 102 | 102 | ||
| 103 | /* Send signals to subprocesses by "typing" special chars at them. */ | 103 | /* Send signals to subprocesses by "typing" special chars at them. */ |
| 104 | #define SIGNALS_VIA_CHARACTERS | 104 | #define SIGNALS_VIA_CHARACTERS |
| 105 | |||
diff --git a/src/s/darwin.h b/src/s/darwin.h index 4fc2f4d1031..dd0d0c34021 100644 --- a/src/s/darwin.h +++ b/src/s/darwin.h | |||
| @@ -68,7 +68,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 68 | Note: PTYs are broken on darwin <6. Use at your own risk. */ | 68 | Note: PTYs are broken on darwin <6. Use at your own risk. */ |
| 69 | #define HAVE_PTYS | 69 | #define HAVE_PTYS |
| 70 | /* Run only once. We need a `for'-loop because the code uses `continue'. */ | 70 | /* Run only once. We need a `for'-loop because the code uses `continue'. */ |
| 71 | #define PTY_ITERATION for (i = 0; i < 1; i++) | 71 | #define PTY_ITERATION int i; for (i = 0; i < 1; i++) |
| 72 | #define PTY_NAME_SPRINTF /* none */ | 72 | #define PTY_NAME_SPRINTF /* none */ |
| 73 | #define PTY_TTY_NAME_SPRINTF /* none */ | 73 | #define PTY_TTY_NAME_SPRINTF /* none */ |
| 74 | /* Note that openpty may fork via grantpt on Mac OS X 10.4/Darwin 8. | 74 | /* Note that openpty may fork via grantpt on Mac OS X 10.4/Darwin 8. |
| @@ -148,4 +148,3 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 148 | 148 | ||
| 149 | /* Use the GC_MAKE_GCPROS_NOOPS (see lisp.h) method for marking the stack. */ | 149 | /* Use the GC_MAKE_GCPROS_NOOPS (see lisp.h) method for marking the stack. */ |
| 150 | #define GC_MARK_STACK GC_MAKE_GCPROS_NOOPS | 150 | #define GC_MARK_STACK GC_MAKE_GCPROS_NOOPS |
| 151 | |||
diff --git a/src/s/gnu-linux.h b/src/s/gnu-linux.h index 84fe5b92da9..178d7082f72 100644 --- a/src/s/gnu-linux.h +++ b/src/s/gnu-linux.h | |||
| @@ -44,7 +44,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 44 | #define UNIX98_PTYS | 44 | #define UNIX98_PTYS |
| 45 | 45 | ||
| 46 | /* Run only once. We need a `for'-loop because the code uses `continue'. */ | 46 | /* Run only once. We need a `for'-loop because the code uses `continue'. */ |
| 47 | #define PTY_ITERATION for (i = 0; i < 1; i++) | 47 | #define PTY_ITERATION int i; for (i = 0; i < 1; i++) |
| 48 | 48 | ||
| 49 | #ifdef HAVE_GETPT | 49 | #ifdef HAVE_GETPT |
| 50 | #define PTY_NAME_SPRINTF | 50 | #define PTY_NAME_SPRINTF |
diff --git a/src/s/irix6-5.h b/src/s/irix6-5.h index 92465ded2ef..d283571d8fb 100644 --- a/src/s/irix6-5.h +++ b/src/s/irix6-5.h | |||
| @@ -60,6 +60,7 @@ char *_getpty(); | |||
| 60 | #define PTY_OPEN \ | 60 | #define PTY_OPEN \ |
| 61 | { \ | 61 | { \ |
| 62 | struct sigaction ocstat, cstat; \ | 62 | struct sigaction ocstat, cstat; \ |
| 63 | struct stat stb; \ | ||
| 63 | char * name; \ | 64 | char * name; \ |
| 64 | sigemptyset(&cstat.sa_mask); \ | 65 | sigemptyset(&cstat.sa_mask); \ |
| 65 | cstat.sa_handler = SIG_DFL; \ | 66 | cstat.sa_handler = SIG_DFL; \ |
| @@ -95,5 +96,3 @@ char *_getpty(); | |||
| 95 | /* Tested on Irix 6.5. SCM worked on earlier versions. */ | 96 | /* Tested on Irix 6.5. SCM worked on earlier versions. */ |
| 96 | #define GC_SETJMP_WORKS 1 | 97 | #define GC_SETJMP_WORKS 1 |
| 97 | #define GC_MARK_STACK GC_MAKE_GCPROS_NOOPS | 98 | #define GC_MARK_STACK GC_MAKE_GCPROS_NOOPS |
| 98 | |||
| 99 | |||