You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ja...@apache.org on 2012/12/06 12:34:42 UTC
[42/50] [abbrv] git commit: Make dependency on unistd.h specific to
HAVE_CURL instead in the whole file
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
Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/fb670f57
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/fb670f57
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/fb670f57
Branch: refs/heads/1536-feature-add-docs
Commit: fb670f5712c08c90b5bd93028c7df39c18fb9656
Parents: cdfdda2
Author: Dave Cottlehuber <dc...@apache.org>
Authored: Sat Dec 1 22:32:52 2012 +0100
Committer: Dave Cottlehuber <dc...@apache.org>
Committed: Sat Dec 1 23:49:23 2012 +0100
----------------------------------------------------------------------
src/couchdb/priv/couch_js/http.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb/blob/fb670f57/src/couchdb/priv/couch_js/http.c
----------------------------------------------------------------------
diff --git a/src/couchdb/priv/couch_js/http.c b/src/couchdb/priv/couch_js/http.c
index e8cd789..c66b5da 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