From db656ec297cd2bdfdbfdf1ee4dab0085f3198492 Mon Sep 17 00:00:00 2001 From: fcolin Date: Fri, 11 Apr 2008 16:21:04 +0000 Subject: Modification pour compilation sous Windows --- src/ivyfifo.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/ivyfifo.c') diff --git a/src/ivyfifo.c b/src/ivyfifo.c index 9bee644..e427f1d 100644 --- a/src/ivyfifo.c +++ b/src/ivyfifo.c @@ -1,7 +1,11 @@ #include #include #include +#ifdef WIN32 +#include +#else #include +#endif #include // DEBUG, pour printf #include "ivyfifo.h" #include "param.h" @@ -146,7 +150,11 @@ unsigned int IvyFifoSendSocket (IvyFifoBuffer *f, const int fd) do { maxLen = MIN ((f->end - f->rptr), IvyFifoLength(f)); - realLen = send (fd, f->rptr, maxLen, MSG_DONTWAIT); +#ifdef WIN32 + realLen = send (fd, f->rptr, maxLen, 0); +#else + realLen = send (fd, f->rptr, maxLen, MSG_DONTWAIT); +#endif IvyFifoDrain(f, realLen); // printf ("DBG> maxLen=%d realLen=%d IvyFifoLength=%d\n", // maxLen, realLen, IvyFifoLength(f)); -- cgit v1.1