Remove __hpux from conditional compilation.

This commit is contained in:
Renaud 2019-08-07 13:17:26 +08:00
parent bc11a0c913
commit 8c1a8f16bf
5 changed files with 7 additions and 7 deletions

View File

@ -172,7 +172,7 @@ struct key_tab keytab[NBINDS] = {
,
{CTLX | 'C', spawncli}
,
#if BSD | __hpux | SVR4
#if BSD | SVR4
{CTLX | 'D', bktoshell}
,
#endif

View File

@ -38,7 +38,7 @@
#undef BSD
#endif
#if defined(SYSV) || defined(u3b2) || defined(_AIX) || (defined(i386) && defined(unix)) || defined(__hpux) || defined( __unix__)
#if defined(SYSV) || defined(u3b2) || defined(_AIX) || (defined(i386) && defined(unix)) || defined( __unix__)
#define USG 1 /* System V UNIX */
#else
#define USG 0

View File

@ -214,7 +214,7 @@ struct name_bind names[] = {
#if PROC
{"store-procedure", storeproc},
#endif
#if BSD | __hpux | SVR4
#if BSD | SVR4
{"suspend-emacs", bktoshell},
#endif
{"transpose-characters", (fn_t) twiddle},

View File

@ -79,7 +79,7 @@ int spawncli(int f, int n)
#endif
}
#if BSD | __hpux | SVR4
#if BSD | SVR4
int bktoshell(int f, int n)
{ /* suspend MicroEMACS and wait to wake up */

View File

@ -72,7 +72,7 @@ char tobuf[TBUFSIZ]; /* terminal output buffer */
#endif
#endif
#if __hpux | SVR4
#if SVR4
extern int rtfrmshell(); /* return from suspended shell */
#define TBUFSIZ 128
char tobuf[TBUFSIZ]; /* terminal output buffer */
@ -130,14 +130,14 @@ void ttopen(void)
#endif
#endif
#if __hpux | SVR4
#if SVR4
/* provide a smaller terminal output buffer so that
the type ahead detection works better (more often) */
setvbuf(stdout, &tobuf[0], _IOFBF, TBUFSIZ);
signal(SIGTSTP, SIG_DFL); /* set signals so that we can */
signal(SIGCONT, rtfrmshell); /* suspend & restart emacs */
TTflush();
#endif /* __hpux */
#endif
/* on all screens we are not sure of the initial position
of the cursor */