mirror of
https://repo.or.cz/socat.git
synced 2025-05-21 20:52:40 +00:00
Fixed preprocessor directives in macro invocation
This commit is contained in:
parent
c8aec28b82
commit
d9d06eb587
2 changed files with 8 additions and 5 deletions
3
CHANGES
3
CHANGES
|
@ -84,6 +84,9 @@ Corrections:
|
|||
When IP4 was completed deconfigured, UDP6-RECVFROM with range option
|
||||
failed.
|
||||
|
||||
Fixed preprocessor directives in macro invocation.
|
||||
Thanks to Mario de Weerd for reporting this issue.
|
||||
|
||||
Features:
|
||||
POSIXMQ-RECV now takes option o-nonblock; this, in combination with -T,
|
||||
makes it possible to terminate Socat in case the queue is empty.
|
||||
|
|
10
filan.c
10
filan.c
|
@ -393,7 +393,7 @@ int filan_stat(
|
|||
break;
|
||||
#ifdef S_IFLNK
|
||||
case (S_IFLNK): /* 10, symbolic link */
|
||||
/* we wait for freadlink() sytem call */
|
||||
/* we wait for freadlink() system call */
|
||||
break;
|
||||
#endif /* S_IFLNK */
|
||||
break;
|
||||
|
@ -804,13 +804,13 @@ int ipan(int fd, FILE *outfile) {
|
|||
}
|
||||
/* want to pass the fd to the next layer protocol. */
|
||||
#if defined(SO_PROTOCOL) || defined(SO_PROTOTYPE)
|
||||
if (Getsockopt(fd, SOL_SOCKET,
|
||||
if (
|
||||
#ifdef SO_PROTOCOL
|
||||
SO_PROTOCOL,
|
||||
Getsockopt(fd, SOL_SOCKET, SO_PROTOCOL, &optproto, &optlen)
|
||||
#elif defined(SO_PROTOTYPE)
|
||||
SO_PROTOTYPE,
|
||||
Getsockopt(fd, SOL_SOCKET, SO_PROTOTYPE, &optproto, &optlen)
|
||||
#endif
|
||||
&optproto, &optlen) >= 0) {
|
||||
>= 0) {
|
||||
switch (optproto) {
|
||||
#if WITH_TCP
|
||||
case IPPROTO_TCP: tcpan(fd, outfile); break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue