ii

git clone https://orangeshoelaces.net/git/ii.git

0716e45b0f807121e39e0bc58ca88797427ccae6

Author: nion@noname on 02/12/2006

Committer: nion@noname on 02/12/2006

fixes for freebsd

Stats

ii.c | 3 +++
1 file changed, 3 insertions(+)

Patch

diff --git a/ii.c b/ii.c
index f50d8aa..5732681 100644
--- a/ii.c
+++ b/ii.c
@@ -23,6 +23,9 @@
 #ifndef nil
 #define nil NULL /* for those who don't understand, nil is used in Plan9 */
 #endif
+#ifndef PIPE_BUF /* FreeBSD don't know PIPE_BUF */
+#define PIPE_BUF 4096
+#endif
 
 enum { TOK_NICKSRV = 0, TOK_USER, TOK_CMD, TOK_CHAN, TOK_ARG, TOK_TEXT, TOK_LAST };