* updated kmailtransport (21.12.1 -> 21.12.2), untested
[t2-trunk.git] / package / editors / nvi / hotfix.patch
blobc44dd31b873486fba3f357703cc45cc0c1fdde47
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3 #
4 # T2 SDE: package/.../nvi/hotfix.patch
5 # Copyright (C) 2019 The T2 SDE Project
6 #
7 # More information can be found in the files COPYING and README.
8 #
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
14 # version.
15 # --- T2-COPYRIGHT-NOTE-END ---
17 $NetBSD: patch-.._ex_ex__script.c,v 1.1 2011/12/26 01:54:39 sbd Exp $
19 --- ../ex/ex_script.c.orig 2007-11-18 16:41:42.000000000 +0000
20 +++ ../ex/ex_script.c
21 @@ -23,8 +23,10 @@ static const char sccsid[] = "$Id: ex_sc
22 #include <sys/select.h>
23 #endif
24 #include <sys/stat.h>
25 -#ifdef HAVE_SYS5_PTY
26 +#if 0 // def HAVE_SYS_STROPTS_H
27 #include <sys/stropts.h>
28 +#elif 0 // defined(HAVE_STROPTS_H)
29 +#include <stropts.h>
30 #endif
31 #include <sys/time.h>
32 #include <sys/wait.h>
33 @@ -750,6 +752,7 @@ ptys_open(int fdm, char *pts_name)
34 return (-5);
37 +#ifndef __linux__
38 if (ioctl(fds, I_PUSH, "ptem") < 0) {
39 close(fds);
40 close(fdm);
41 @@ -767,6 +770,7 @@ ptys_open(int fdm, char *pts_name)
42 close(fdm);
43 return (-8);
45 +#endif
47 return (fds);