mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 01:48:00 +00:00
Handle <limits.h> not defining PIPE_BUF.
According to POSIX, this can legally not be defined 'where the [...] value is equal to or greater than the stated minimum, but where the value can vary depending on the file to which it is applied'. So if limits.h hasn't defined PIPE_BUF, we define it ourself to the stated minimum, to wit, _POSIX_PIPE_BUF. Apparently it is actually undefined by <limits.h> on GNU/Hurd: Debian has been carrying this patch downstream for that reason.
This commit is contained in:
parent
582284fa6c
commit
f6d1fef2d7
@ -22,6 +22,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
|
||||
|
||||
static char *make_parentdir_name(void)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user