. HP-UX 8.00 and earlier (no vhangup or ptsname routines)
*/
-#define _XOPEN_SOURCE
+#define _XOPEN_SOURCE 500
#include <stdlib.h>
#include "ckcsym.h"
#include "ckcdeb.h" /* To pick up NETPTY definition */
+ckermit (302-3) unstable; urgency=low
+
+ * Fix Hurd FTBFS: (Closes: #674444)
+ + 020_fix_ptys.patch: define _XOPEN_SOURCE to 500.
+ + rules: don't define HAVE_PTMX on hurd.
+
+ -- Ian Beckwith <ianb@debian.org> Sat, 26 May 2012 00:39:22 +0100
+
ckermit (302-2) unstable; urgency=low
* DES support is disabled as libdes425 has been removed.
Needed along with -DHAVE_PTMX for working ptys
Forwarded: email
Author: Mark Wooding <mdw@distorted.org.uk>
-Last-Update: 2012-05-08
+Last-Update: 2012-05-26
Bug-Debian: http://bugs.debian.org/660066
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
+--- ckermit.orig/ckupty.c 2012-05-09 23:29:20.000000000 +0100
++++ ckermit/ckupty.c 2012-05-26 00:35:08.000000000 +0100
@@ -54,6 +54,8 @@
. HP-UX 8.00 and earlier (no vhangup or ptsname routines)
*/
-+#define _XOPEN_SOURCE
++#define _XOPEN_SOURCE 500
+#include <stdlib.h>
#include "ckcsym.h"
#include "ckcdeb.h" /* To pick up NETPTY definition */
CFLAGS +=-g \
-DIKSDCONF=\\\\\\\\\\\\\\\"/etc/kermit/iksd.conf\\\\\\\\\\\\\\\" \
-DCK_SYSINI=\\\\\\\\\\\\\\\"/etc/kermit/kermrc\\\\\\\\\\\\\\\" \
- -DCK_INI_B -DX509_SUBJECT_ALT_NAME_TO_USER -DHAVE_PTMX
+ -DCK_INI_B -DX509_SUBJECT_ALT_NAME_TO_USER
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
CFLAGS += -O0
CFLAGS += -DSELECT
endif
+ifeq (,$(findstring hurd, $(DEB_HOST_ARCH_OS)))
+ CFLAGS += -DHAVE_PTMX
+endif
+
LINKERFLAGS=`dpkg-buildflags --get LDFLAGS`
LINKERFLAGS+=-Wl,-z,defs -Wl,--as-needed