Fixed ancillary messages on Solaris

This commit is contained in:
Gerhard Rieger 2022-09-26 21:56:21 +02:00
parent 6340127060
commit e52675faed
3 changed files with 10 additions and 0 deletions

View file

@ -67,6 +67,8 @@ Porting:
Solaris requires that termios options are always applied to the slave
side of PTY.
Fixed ancillary messages on Solaris.
Features:
Filan prints target of symlink when appropriate
Test: FILANSYMLINK

View file

@ -31,6 +31,10 @@ extern char **environ;
# undef PIPE_STATES_SOCKET
#endif
#if defined(__sun) || defined(__sun__) || defined(__SunOS)
# define XIO_ANCILLARY_TYPE_SOLARIS 1
#endif
/*****************************************************************************/
/* substitute some features that might be missing on some platforms */

View file

@ -618,7 +618,11 @@ int xiolog_ancillary_ip(struct cmsghdr *cmsg, int *num,
cmsgtype = "IP_OPTIONS"; cmsgname = "options"; cmsgctr = -1;
/*!!!*/
break;
#if XIO_ANCILLARY_TYPE_SOLARIS
case IP_RECVTOS:
#else
case IP_TOS:
#endif
cmsgtype = "IP_TOS"; cmsgname = "tos"; cmsgctr = msglen;
break;
case IP_TTL: /* Linux */