X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=urlmatch.c;h=4886e4c466500951c80e430fe8283eba1658427e;hp=868a16b3806d94cb65adb251727d90cceac58c6a;hb=aa9bd90e175209536a5e68021791702cc15b1ce9;hpb=8666662f482bbfbb9c8407af506b5b82e2ef0dae diff --git a/urlmatch.c b/urlmatch.c index 868a16b3..4886e4c4 100644 --- a/urlmatch.c +++ b/urlmatch.c @@ -45,7 +45,7 @@ #include #include -#if !defined(_WIN32) && !defined(__OS2__) +#if !defined(_WIN32) #include #endif @@ -1301,7 +1301,8 @@ static int host_matches(const struct http_request *http, { assert(http->host != NULL); #ifdef FEATURE_PCRE_HOST_PATTERNS - if (pattern->pattern.url_spec.host_regex_type == PCRE_HOST_PATTERN) { + if (pattern->pattern.url_spec.host_regex_type == PCRE_HOST_PATTERN) + { return ((NULL == pattern->pattern.url_spec.host_regex) || (0 == regexec(pattern->pattern.url_spec.host_regex, http->host, 0, NULL, 0)));