[hackers] [ii] use _POSIX_PIPE_BUF if PIPE_BUF is not defined (as on FreeBSD); thanks Gleydson Soares! || Nico Golde
commit 63b5736e6efb83bf9b617f83ecbeed38a1b3add4
Author: Nico Golde <nion_AT_debian.org>
Date: Sun Mar 22 13:37:53 2015 +0100
use _POSIX_PIPE_BUF if PIPE_BUF is not defined (as on FreeBSD); thanks Gleydson Soares!
diff --git a/ii.c b/ii.c
index d93266c..8f6a42f 100644
--- a/ii.c
+++ b/ii.c
_AT_@ -19,8 +19,8 @@
#include <time.h>
#include <unistd.h>
-#ifndef PIPE_BUF /* FreeBSD don't know PIPE_BUF */
-#define PIPE_BUF 4096
+#ifndef PIPE_BUF /* For OS that doesn't includes PIPE_BUF in limits.h, FreeBSD? */
+#define PIPE_BUF _POSIX_PIPE_BUF
#endif
#define PING_TIMEOUT 300
#define SERVER_PORT 6667
Received on Sun Mar 22 2015 - 13:38:04 CET
This archive was generated by hypermail 2.3.0
: Sun Mar 22 2015 - 13:48:09 CET