Commit b2999e45 authored by Andrew Tridgell's avatar Andrew Tridgell

don't need PIPE_BUF any more

parent 0f3203c3
...@@ -364,8 +364,6 @@ static void writefd_unbuffered(int fd,char *buf,int len) ...@@ -364,8 +364,6 @@ static void writefd_unbuffered(int fd,char *buf,int len)
if (FD_ISSET(fd, &w_fds)) { if (FD_ISSET(fd, &w_fds)) {
int ret, n = len-total; int ret, n = len-total;
if (n > PIPE_BUF) n = PIPE_BUF;
ret = write(fd,buf+total,n?n:1); ret = write(fd,buf+total,n?n:1);
if (ret == -1 && errno == EINTR) { if (ret == -1 && errno == EINTR) {
......
...@@ -283,10 +283,6 @@ enum logcode {FNONE=0, FERROR=1, FINFO=2, FLOG=3}; ...@@ -283,10 +283,6 @@ enum logcode {FNONE=0, FERROR=1, FINFO=2, FLOG=3};
#define MAXPATHLEN 1024 #define MAXPATHLEN 1024
#endif #endif
#ifndef PIPE_BUF
#define PIPE_BUF 512
#endif
#ifndef INADDR_NONE #ifndef INADDR_NONE
#define INADDR_NONE 0xffffffff #define INADDR_NONE 0xffffffff
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment