From: Ian Beckwith Date: Tue, 8 May 2012 03:47:59 +0000 (+0100) Subject: new patch: 020_fix_ptys X-Git-Tag: 302-2~11 X-Git-Url: http://erislabs.net/gitweb/?p=ckermit.git;a=commitdiff_plain;h=7cb2740ab75d86ce8de2dde75888d225d7946ca9 new patch: 020_fix_ptys --- diff --git a/ckupty.c b/ckupty.c index 9906555..aaed05b 100644 --- a/ckupty.c +++ b/ckupty.c @@ -54,6 +54,8 @@ char *ckptyv = "Pseudoterminal support, 9.0.101, 13 Jun 2011"; . HP-UX 8.00 and earlier (no vhangup or ptsname routines) */ +#define _XOPEN_SOURCE +#include #include "ckcsym.h" #include "ckcdeb.h" /* To pick up NETPTY definition */ diff --git a/debian/changelog b/debian/changelog index 90c289e..73c81c7 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,6 +2,7 @@ ckermit (302-2) unstable; urgency=low * Fix FTBFS on hurd-i386 (Closes: #671892) Thanks to Svante Signell. + * New patch: 020_fix_ptys. Thanks to Mark Wooding (Closes: #660066). * Fix pending l10n issues. Debconf translations: + Dutch; (Thanks to Jeroen Schot). Closes: #660843 + Polish (Thanks to Michał Kułach). Closes: #670771 diff --git a/debian/patches/020_fix_ptys.patch b/debian/patches/020_fix_ptys.patch new file mode 100644 index 0000000..2bd5b47 --- /dev/null +++ b/debian/patches/020_fix_ptys.patch @@ -0,0 +1,13 @@ +Index: ckermit/ckupty.c +=================================================================== +--- ckermit.orig/ckupty.c 2012-05-08 04:43:50.000000000 +0100 ++++ ckermit/ckupty.c 2012-05-08 04:44:30.000000000 +0100 +@@ -54,6 +54,8 @@ + . HP-UX 8.00 and earlier (no vhangup or ptsname routines) + */ + ++#define _XOPEN_SOURCE ++#include + #include "ckcsym.h" + #include "ckcdeb.h" /* To pick up NETPTY definition */ + diff --git a/debian/patches/series b/debian/patches/series index 11154f1..f698667 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1 +1,2 @@ 010_multiarch-makefile.patch +020_fix_ptys.patch diff --git a/debian/rules b/debian/rules index 6720b1b..98a5c19 100755 --- a/debian/rules +++ b/debian/rules @@ -11,7 +11,7 @@ BUILDDIR=`pwd`/debian/ckermit CFLAGS =-g \ -DIKSDCONF=\\\\\\\\\\\\\\\"/etc/kermit/iksd.conf\\\\\\\\\\\\\\\" \ -DCK_SYSINI=\\\\\\\\\\\\\\\"/etc/kermit/kermrc\\\\\\\\\\\\\\\" \ - -DCK_INI_B -DX509_SUBJECT_ALT_NAME_TO_USER + -DCK_INI_B -DX509_SUBJECT_ALT_NAME_TO_USER -DHAVE_PTMX ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0