Skip to content

Commit

Permalink
put includes in a known path for the compiler.
Browse files Browse the repository at this point in the history
  • Loading branch information
benoitc committed Dec 5, 2010
1 parent 7ac9d78 commit cbf14c8
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
Binary file modified couchapp
Binary file not shown.
5 changes: 4 additions & 1 deletion rebar.config
@@ -1,7 +1,10 @@
%%-*- mode: erlang -*-

%% Erlang compiler options
{erl_opts, [{i, "include"}, debug]}.
{erl_opts, [{i, "include"},
{i, "deps/ibrowse/src/"},
{i, "deps/couchbeam/include"},
debug]}.

{app_bin, ["priv/couchapp"]}.

Expand Down
2 changes: 1 addition & 1 deletion src/couchapp_push.erl
Expand Up @@ -9,7 +9,7 @@

-include_lib("kernel/include/file.hrl").
-include("couchapp.hrl").
-include("deps/couchbeam/include/couchbeam.hrl").
-include("couchbeam.hrl").

-export([push/2]).

Expand Down
5 changes: 3 additions & 2 deletions src/couchapp_util.erl
Expand Up @@ -5,7 +5,7 @@

-module(couchapp_util).

-include("deps/ibrowse/src/ibrowse.hrl").
-include("ibrowse.hrl").
-include("couchapp.hrl").

-define(BLOCKSIZE, 32768).
Expand Down Expand Up @@ -45,8 +45,9 @@ db_from_string(DbString) ->
DbString
end,
Url = ibrowse_lib:parse_url(DbUrl),
Server = couchbeam:server_connection(Url#url.host, Url#url.port),

Server = couchbeam:server_connection(Url#url.host, Url#url.port),

Options = case Url#url.username of
undefined -> [];
Username ->
Expand Down

0 comments on commit cbf14c8

Please sign in to comment.