diff options
author | mycroft <mycroft@pkgsrc.org> | 1998-03-16 06:37:59 +0000 |
---|---|---|
committer | mycroft <mycroft@pkgsrc.org> | 1998-03-16 06:37:59 +0000 |
commit | b0825c60cb2a0d807cb783bfa25bbc212079f616 (patch) | |
tree | 846716b0c426a47beb7f901ab88873d5df76872f /editors/emacs | |
parent | 4baaddaca55a9893ad8d6ef5927cd9066abe1803 (diff) | |
download | pkgsrc-b0825c60cb2a0d807cb783bfa25bbc212079f616.tar.gz |
Use openpty(3) and POSIX signal functions.
Remove HAVE_UNION_WAIT.
Diffstat (limited to 'editors/emacs')
-rw-r--r-- | editors/emacs/patches/patch-ac | 56 |
1 files changed, 51 insertions, 5 deletions
diff --git a/editors/emacs/patches/patch-ac b/editors/emacs/patches/patch-ac index 5ccf5a68164..efc175c42f5 100644 --- a/editors/emacs/patches/patch-ac +++ b/editors/emacs/patches/patch-ac @@ -1,9 +1,21 @@ ---- src/s/netbsd.h.orig Sat Oct 11 04:29:49 1997 -+++ src/s/netbsd.h Sat Oct 11 04:30:46 1997 -@@ -33,7 +33,12 @@ +--- src/s/netbsd.h.orig Tue Jun 10 21:09:55 1997 ++++ src/s/netbsd.h Mon Mar 16 01:25:54 1998 +@@ -14,8 +14,6 @@ + #undef LDAV_SYMBOL + #define HAVE_GETLOADAVG + +-#define HAVE_UNION_WAIT +- + #define SIGNALS_VIA_CHARACTERS + + #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base) +@@ -31,9 +29,13 @@ + #define NO_TERMIO + #define LIBS_DEBUG - /* -lutil is not needed for NetBSD >0.9. */ - /* #define LIBS_SYSTEM -lutil */ +-/* -lutil is not needed for NetBSD >0.9. */ +-/* #define LIBS_SYSTEM -lutil */ ++#define LIBS_SYSTEM -lutil +#ifdef HAVE_LIBNCURSES +#define TERMINFO +#define LIBS_TERMCAP -lncurses @@ -13,3 +25,37 @@ #define NEED_ERRNO #define SYSV_SYSTEM_DIR +@@ -65,6 +67,33 @@ + #define NO_MATHERR + + #define AMPERSAND_FULL_NAME ++ ++/* Don't close pty in process.c to make it as controlling terminal. ++ It is already a controlling terminal of subprocess, because we did ++ ioctl TIOCSCTTY. */ ++#define DONT_REOPEN_PTY ++ ++/* We have a function to do all the right magic. */ ++#undef FIRST_PTY_LETTER ++#define PTY_ITERATION for (i = 0; i < 1; i++) /* ick */ ++#define PTY_NAME_SPRINTF /* none */ ++#define PTY_TTY_NAME_SPRINTF /* none */ ++#define PTY_OPEN \ ++ do \ ++ { \ ++ int slave; \ ++ SIGMASKTYPE mask; \ ++ mask = sigblockx (SIGCHLD); \ ++ if (-1 == openpty (&fd, &slave, pty_name, 0, 0)) \ ++ fd = -1; \ ++ else \ ++ close (slave); \ ++ sigsetmask (mask); \ ++ } \ ++ while (0) ++ ++/* Use POSIX signal interface. */ ++#define POSIX_SIGNALS + + #ifdef __ELF__ + /* Here is how to find X Windows. LD_SWITCH_X_SITE_AUX gives an -R option |