summaryrefslogtreecommitdiff
path: root/src/http.c
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2013-08-21 22:44:49 +0200
committerraveit65 <[email protected]>2013-08-21 22:44:49 +0200
commit1f1f66fc0bf276baa9896b96ba31d814b509e3cc (patch)
treed962d740437e826849340c0a3720da70cc0f9f71 /src/http.c
parentcf632626d056a8a221c0295c62aa5509d3484172 (diff)
downloadmate-user-share-1f1f66fc0bf276baa9896b96ba31d814b509e3cc.tar.bz2
mate-user-share-1f1f66fc0bf276baa9896b96ba31d814b509e3cc.tar.xz
OpenBSD suffers from the same httpd race condition as the other BSDs
Diffstat (limited to 'src/http.c')
-rw-r--r--src/http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http.c b/src/http.c
index 13b11eb..71161cd 100644
--- a/src/http.c
+++ b/src/http.c
@@ -89,7 +89,7 @@ get_port (void)
return -1;
}
-#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__APPLE__)
+#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__APPLE__) || defined(__OpenBSD__)
/* XXX This exposes a potential race condition, but without this,
* httpd will not start on the above listed platforms due to the fact
* that SO_REUSEADDR is also needed when Apache binds to the listening