new patch: 020_fix_ptys
authorIan Beckwith <ianb@erislabs.net>
Tue, 8 May 2012 03:47:59 +0000 (04:47 +0100)
committerIan Beckwith <ianb@erislabs.net>
Tue, 8 May 2012 03:47:59 +0000 (04:47 +0100)
ckupty.c
debian/changelog
debian/patches/020_fix_ptys.patch [new file with mode: 0644]
debian/patches/series
debian/rules

index 9906555..aaed05b 100644 (file)
--- 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 <stdlib.h>
 #include "ckcsym.h"
 #include "ckcdeb.h"                    /* To pick up NETPTY definition */
 
index 90c289e..73c81c7 100644 (file)
@@ -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 (file)
index 0000000..2bd5b47
--- /dev/null
@@ -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 <stdlib.h>
+ #include "ckcsym.h"
+ #include "ckcdeb.h"                   /* To pick up NETPTY definition */
index 11154f1..f698667 100644 (file)
@@ -1 +1,2 @@
 010_multiarch-makefile.patch
+020_fix_ptys.patch
index 6720b1b..98a5c19 100755 (executable)
@@ -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