diff options
author | Dave Cottlehuber <dch@apache.org> | 2012-12-01 22:32:52 +0100 |
---|---|---|
committer | Dave Cottlehuber <dch@apache.org> | 2012-12-01 23:49:23 +0100 |
commit | fb670f5712c08c90b5bd93028c7df39c18fb9656 (patch) | |
tree | 1df32ab2a08a0e79141136666f2e6e627d2a3916 /src | |
parent | cdfdda231473258e57af8e54b3e0b369c43590ab (diff) | |
download | couchdb-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.c | 2 |
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 |