mirror of
https://repo.or.cz/socat.git
synced 2025-07-14 15:23:24 +00:00
Fixed build issues on disabled features
This commit is contained in:
parent
af7d44d751
commit
7a90caade5
21 changed files with 182 additions and 95 deletions
|
@ -116,8 +116,10 @@ ssize_t xiowrite(xiofile_t *file, const void *buff, size_t bytes) {
|
|||
case XIOWRITE_PIPE:
|
||||
if (pipe->para.bipipe.socktype == SOCK_STREAM) {
|
||||
writt = Write(pipe->para.bipipe.fdout, buff, bytes);
|
||||
#if _WITH_SOCKET
|
||||
} else {
|
||||
writt = Send(pipe->para.bipipe.fdout, buff, bytes, 0);
|
||||
#endif /* _WITH_SOCKET */
|
||||
}
|
||||
_errno = errno;
|
||||
if (writt < 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue