use _POSIX_PIPE_BUF if PIPE_BUF is not defined (as on FreeBSD); thanks Gleydson Soares!
This commit is contained in:
parent
41ce43bf8c
commit
63b5736e6e
4
ii.c
4
ii.c
@ -19,8 +19,8 @@
|
|||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
#ifndef PIPE_BUF /* FreeBSD don't know PIPE_BUF */
|
#ifndef PIPE_BUF /* For OS that doesn't includes PIPE_BUF in limits.h, FreeBSD? */
|
||||||
#define PIPE_BUF 4096
|
#define PIPE_BUF _POSIX_PIPE_BUF
|
||||||
#endif
|
#endif
|
||||||
#define PING_TIMEOUT 300
|
#define PING_TIMEOUT 300
|
||||||
#define SERVER_PORT 6667
|
#define SERVER_PORT 6667
|
||||||
|
Loading…
Reference in New Issue
Block a user