You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by dc...@apache.org on 2012/12/01 23:48:44 UTC

git commit: Make dependency on unistd.h specific to HAVE_CURL instead in the whole file

Updated Branches:
  refs/heads/1.3.x 10f45a55e -> f1b230489


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/f1b23048
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/f1b23048
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/f1b23048

Branch: refs/heads/1.3.x
Commit: f1b2304893a8fc9db9115d966e8e1e9b053cdcd5
Parents: 10f45a5
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:01: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/f1b23048/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