Source: picolisp Version: 3.1.11.1-1 Severity: important Tags: patch Usertags: hurd User: [email protected]
Hello, Currently picolisp FTBFS on GNU/Hurd due to that PIPE_BUF is not defined in limits.h. The attached patch solves this problem by defining it in src/io.c to 4096 for systems that don't. Alternately this constant could be using the _POSIX_PIPE_BUF value of 512 from posix1_lim.h included via limits.h or dynamically with the aid of fpathconf (fd, _PC_PIPE_BUF). Thanks!
--- a/src/io.c.orig 2015-06-01 14:36:36.000000000 +0200 +++ b/src/io.c 2015-10-21 16:07:03.000000000 +0200 @@ -9,6 +9,10 @@ #define fcntl(fd,cmd,fl) 0 #endif +#ifndef PIPE_BUF +#define PIPE_BUF 4096 +#endif + static any read0(bool); // I/O Tokens

