diff options
Diffstat (limited to 'net/pptp/patches/patch-ae')
-rw-r--r-- | net/pptp/patches/patch-ae | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/net/pptp/patches/patch-ae b/net/pptp/patches/patch-ae new file mode 100644 index 00000000000..379bec11f59 --- /dev/null +++ b/net/pptp/patches/patch-ae @@ -0,0 +1,28 @@ +$NetBSD: patch-ae,v 1.1.1.1 2000/04/10 01:14:02 jtk Exp $ + +Index: pty.h +--- pty.h.orig 1998/09/02 14:40:55 ++++ pty.h 1998/09/03 13:33:54 +@@ -19,6 +19,22 @@ + #define PTYCHAR2 "0123456789abcdef" + #endif + ++#ifdef __NetBSD__ ++#define PTYDEV "/dev/ptyxx" ++#define TTYDEV "/dev/ttyxx" ++ ++#define PTYMAX (strlen(PTYDEV)+1) ++#define TTYMAX (strlen(TTYDEV)+1) ++ ++#ifdef __i386__ ++/* PCVT conflicts with ttyv*. */ ++#define PTYCHAR1 "pqrstuwxyzPQRST" ++#else ++#define PTYCHAR1 "pqrstuvwxyzPQRST" ++#endif ++#define PTYCHAR2 "0123456789abcdef" ++#endif ++ + /* Get pty/tty pair, put filename in ttydev, ptydev (which must be + * at least PTYMAX characters long), and return file descriptor of + * open pty. |