Introduction
Introduction Statistics Contact Development Disclaimer Help
use _POSIX_PIPE_BUF if PIPE_BUF is not defined (as on FreeBSD); thanks Gleydson…
git clone git://git.suckless.org/ii
Log
Files
Refs
README
LICENSE
---
commit 63b5736e6efb83bf9b617f83ecbeed38a1b3add4
parent 41ce43bf8c859231d593f8f3a4541313ab37fb5b
Author: Nico Golde <[email protected]>
Date: Sun, 22 Mar 2015 13:37:53 +0100
use _POSIX_PIPE_BUF if PIPE_BUF is not defined (as on FreeBSD); thanks Gleydson…
Diffstat:
M ii.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/ii.c b/ii.c
@@ -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
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.