f32c5934eea4c2fd3b3b22eeb1710784cdfc4f9b
[ckermit.git] / debian / patches / 020_fix_ptys.patch
1 Description: get correct ptsname() prototype
2  Needed along with -DHAVE_PTMX for working ptys
3 Forwarded: email
4 Author: Mark Wooding <mdw@distorted.org.uk>
5 Last-Update: 2012-05-08
6 Bug-Debian: http://bugs.debian.org/660066
7
8 Index: ckermit/ckupty.c
9 ===================================================================
10 --- ckermit.orig/ckupty.c       2012-05-08 04:43:50.000000000 +0100
11 +++ ckermit/ckupty.c    2012-05-08 04:44:30.000000000 +0100
12 @@ -54,6 +54,8 @@
13     . HP-UX 8.00 and earlier (no vhangup or ptsname routines)
14  */
15  
16 +#define _XOPEN_SOURCE
17 +#include <stdlib.h>
18  #include "ckcsym.h"
19  #include "ckcdeb.h"                    /* To pick up NETPTY definition */
20