Fix Hurd FTBFS: (Closes: #674444)
[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-26
6 Bug-Debian: http://bugs.debian.org/660066
7
8 Index: ckermit/ckupty.c
9 ===================================================================
10 --- ckermit.orig/ckupty.c       2012-05-09 23:29:20.000000000 +0100
11 +++ ckermit/ckupty.c    2012-05-26 00:35:08.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 500
17 +#include <stdlib.h>
18  #include "ckcsym.h"
19  #include "ckcdeb.h"                    /* To pick up NETPTY definition */
20