Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Make dependency on unistd.h specific to HAVE_CURL instead in the whol…

…e file

- introduced in COUCHDB-1338
- allows building cleanly on Windows without cURL
  • Loading branch information...
commit fb670f5712c08c90b5bd93028c7df39c18fb9656 1 parent cdfdda2
@dch dch authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/couchdb/priv/couch_js/http.c
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.