we propably need to hunt around on FreeBSD; as some
intermediate releases might have given a different Eno.
But then again those where on the current track. So they
are safe to ignore.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@89549
13f79535-47bb-0310-9956-
ffa450edef68
struct accept_filter_arg af = {
ACCEPT_FILTER_NAME, ""
};
- if (setsockopt(s, SOL_SOCKET, SO_ACCEPTFILTER, &af, sizeof(af)) < 0
- && errno != ENOENT) {
+ if ((setsockopt(s, SOL_SOCKET, SO_ACCEPTFILTER, &af, sizeof(af)) < 0)
+ && (errno != ENOENT) && (errno != ENOPROTOOPT)) {
ap_log_error(APLOG_MARK, APLOG_WARNING, server_conf,
"make_sock: for %s, setsockopt: (SO_ACCEPTFILTER)",
addr);