aboutsummaryrefslogtreecommitdiffstats
path: root/src/s/gnu-linux.h
diff options
context:
space:
mode:
authorGlenn Morris2012-07-11 23:34:40 -0700
committerGlenn Morris2012-07-11 23:34:40 -0700
commit6e7778482fb5fc9e527b799db7c83b210674c2a8 (patch)
tree0f8abc321d764ce068acbeea87bd7b947e1eea65 /src/s/gnu-linux.h
parent4a7edc24ba4da27f44151df4e4541c86c35d3037 (diff)
downloademacs-6e7778482fb5fc9e527b799db7c83b210674c2a8.tar.gz
emacs-6e7778482fb5fc9e527b799db7c83b210674c2a8.zip
Move FIRST_PTY_LETTER, PTY_ITERATION from src/s to configure
* configure.ac (FIRST_PTY_LETTER PTY_ITERATION): Move here from src/s. * src/s/aix4-2.h, src/s/bsd-common.h, src/s/cygwin.h, src/s/darwin.h: * src/s/gnu-linux.h, src/s/hpux10-20.h, src/s/irix6-5.h, src/s/template.h: * src/s/usg5-4-common.h: Move FIRST_PTY_LETTER, PTY_ITERATION to configure.
Diffstat (limited to 'src/s/gnu-linux.h')
-rw-r--r--src/s/gnu-linux.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/s/gnu-linux.h b/src/s/gnu-linux.h
index 5e8691b55ce..dd4de41f84b 100644
--- a/src/s/gnu-linux.h
+++ b/src/s/gnu-linux.h
@@ -28,9 +28,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
28#if defined HAVE_GRANTPT 28#if defined HAVE_GRANTPT
29#define UNIX98_PTYS 29#define UNIX98_PTYS
30 30
31/* Run only once. We need a `for'-loop because the code uses `continue'. */
32#define PTY_ITERATION int i; for (i = 0; i < 1; i++)
33
34#ifdef HAVE_GETPT 31#ifdef HAVE_GETPT
35#define PTY_NAME_SPRINTF 32#define PTY_NAME_SPRINTF
36#define PTY_OPEN fd = getpt () 33#define PTY_OPEN fd = getpt ()
@@ -56,13 +53,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
56 sigunblock (sigmask (SIGCHLD)); \ 53 sigunblock (sigmask (SIGCHLD)); \
57 } 54 }
58 55
59#else /* not HAVE_GRANTPT */ 56#endif /* HAVE_GRANTPT */
60
61/* Letter to use in finding device name of first pty,
62 if system supports pty's. 'p' means it is /dev/ptyp0 */
63#define FIRST_PTY_LETTER 'p'
64
65#endif /* not HAVE_GRANTPT */
66 57
67/* Here, on a separate page, add any special hacks needed 58/* Here, on a separate page, add any special hacks needed
68 to make Emacs work on this system. For example, 59 to make Emacs work on this system. For example,