Source: putty Version: 0.66-1 Severity: important Tags: patch Usertags: hurd User: debian-h...@lists.debian.org
Hello, putty FTBFS on GNU/Hurd due to a missing definition of PIPE_BUF in <limits.h>. This is solved by using the _POSIX_PIPE_BUF defined value of 512 instead. (In fact the assertion will never happen, SALT_SIZE is defined to 64 and PIPE_BUF is always larger than that, e.g. for Linux 4096, and so is _POSIX_PIPE_BUF. Thanks!
Index: putty-0.66/unix/uxshare.c =================================================================== --- putty-0.66.orig/unix/uxshare.c +++ putty-0.66/unix/uxshare.c @@ -23,6 +23,9 @@ #define CONNSHARE_SOCKETDIR_PREFIX "/tmp/putty-connshare" #define SALT_FILENAME "salt" #define SALT_SIZE 64 +#ifndef PIPE_BUF +#define PIPE_BUF _POSIX_PIPE_BUF +#endif /* * Functions provided by uxnet.c to help connection sharing.