Don't generate log messages about "setsockopt (IP_TOS)" not working on GNO.

This isn't currently supported by MariGNOtti, so it always generates the message, but it's really not important.
This commit is contained in:
Stephen Heumann 2016-01-07 20:19:25 -06:00
parent e761e0fc48
commit cc929f87ce
1 changed files with 1 additions and 1 deletions

View File

@ -415,7 +415,7 @@ main(int argc, char *argv[])
if (tos
&& (setsockopt(STDIN_FILENO, IPPROTO_IP, IP_TOS,
(char *)&tos, sizeof(tos)) < 0)
&& (errno != ENOPROTOOPT) )
&& (errno != ENOPROTOOPT) && (errno != EINVAL) )
syslog(LOG_WARNING, "setsockopt (IP_TOS): %m");
}
#endif /* defined(IPPROTO_IP) && defined(IP_TOS) */