X-Git-Url: http://git.meshlink.io/?p=catta;a=blobdiff_plain;f=src%2Fcompat%2Fwindows%2Fwincompat.h;h=f611e33e581534346e81022dafb3f83759c87084;hp=8f62240c68be2e3cc9f9c57bfc1b98f283d503a2;hb=dd315fb0f7a90a6f154cbea0e7a7c64b550164b9;hpb=1141784d37d9da9006f3db62d611775bcc0a8c4f diff --git a/src/compat/windows/wincompat.h b/src/compat/windows/wincompat.h index 8f62240..f611e33 100644 --- a/src/compat/windows/wincompat.h +++ b/src/compat/windows/wincompat.h @@ -99,6 +99,11 @@ int ioctl(int d, unsigned long request, int *p); // something to give to WSAPoll, so we fake it with a local TCP socket. (ugh) int pipe(int pipefd[2]); +// pipe(socket)-specific read/write/close equivalents +#define closepipe closesocket +#define writepipe(s,buf,len) send(s, buf, len, 0) +#define readpipe(s,buf,len) recv(s, buf, len, 0) + // Windows logically doesn't have uname, so we supply a replacement.