Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Reverse sense of new_inets test, for better interaction with rebar

  • Loading branch information...
commit f471b41b2ebb4902dea0c69a7462a3aa23f31b73 1 parent 834e5ff
@tonyg authored
Showing with 5 additions and 5 deletions.
  1. +2 −2 Makefile
  2. +3 −3 src/rfc4627_jsonrpc_inets.erl
View
4 Makefile
@@ -15,9 +15,9 @@ PACKAGE_NAME=rfc4627_jsonrpc
## change, and supply a compile-time macro definition to allow
## rfc4627_jsonrpc_inets.erl to adapt to the new path.
ifeq ($(shell test R14A \> $$(erl -noshell -eval 'io:format(erlang:system_info(otp_release)), halt().') && echo yes),yes)
-INETS_DEF=
+INETS_DEF=-Dold_inets
else
-INETS_DEF=-Dnew_inets
+INETS_DEF=
endif
all: $(TARGETS)
View
6 src/rfc4627_jsonrpc_inets.erl
@@ -91,10 +91,10 @@
%% The path to httpd.hrl has changed in OTP R14A and newer. Our
%% Makefile detects the change for us, and supplies a compile-time
%% macro definition to allow us to adapt to the new path.
--ifdef(new_inets).
--include_lib("inets/src/http_server/httpd.hrl").
--else.
+-ifdef(old_inets).
-include_lib("inets/src/httpd.hrl").
+-else.
+-include_lib("inets/src/http_server/httpd.hrl").
-endif.
-export([do/1, load/2]).
Please sign in to comment.
Something went wrong with that request. Please try again.