summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDave Cottlehuber <dch@apache.org>2012-12-01 22:32:52 +0100
committerDave Cottlehuber <dch@apache.org>2012-12-01 23:49:23 +0100
commitfb670f5712c08c90b5bd93028c7df39c18fb9656 (patch)
tree1df32ab2a08a0e79141136666f2e6e627d2a3916 /src
parentcdfdda231473258e57af8e54b3e0b369c43590ab (diff)
downloadcouchdb-fb670f5712c08c90b5bd93028c7df39c18fb9656.tar.gz
Make dependency on unistd.h specific to HAVE_CURL instead in the whole file
- introduced in COUCHDB-1338 - allows building cleanly on Windows without cURL
Diffstat (limited to 'src')
-rw-r--r--src/couchdb/priv/couch_js/http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/couchdb/priv/couch_js/http.c b/src/couchdb/priv/couch_js/http.c
index e8cd789f2..c66b5dab9 100644
--- a/src/couchdb/priv/couch_js/http.c
+++ b/src/couchdb/priv/couch_js/http.c
@@ -15,7 +15,6 @@
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
-#include <unistd.h>
#include <jsapi.h>
#include "config.h"
#include "utf8.h"
@@ -84,6 +83,7 @@ http_uri(JSContext* cx, JSObject* req, couch_args* args, jsval* uri_val)
#else
#include <curl/curl.h>
+#include <unistd.h>
void