diff --git a/Makefile b/Makefile
index 3f20ae9..ee51fc7 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
CFLAGS = -std=c89 -W -Wall -Werror -O0 -ggdb -fPIC
-CPPFLAGS = -I./c_src -I/usr/local/lib/erlang24/usr/include -I/usr/local/lib/erlang/usr/include -I/usr/local/include -DDEBUG
+CPPFLAGS = -I./c_src -I/usr/local/lib/erlang25/usr/include -I/usr/local/lib/erlang/usr/include -I/usr/local/include -DDEBUG
LDFLAGS = -shared -L/usr/local/lib
git_nif = priv/libgit_nif.so
diff --git a/c_src/git_nif.c b/c_src/git_nif.c
index a01f603..a782c00 100644
--- a/c_src/git_nif.c
+++ b/c_src/git_nif.c
@@ -636,7 +636,7 @@ ERL_NIF_TERM log_nif (ErlNifEnv *env, int argc,
char *branch_name = NULL;
git_commit *commit = NULL;
int count = 0;
- git_diff_options diffopts = {GIT_DIFF_OPTIONS_VERSION, 0, GIT_SUBMODULE_IGNORE_UNSPECIFIED, {NULL, 0}, NULL, NULL, NULL, 3, 0, 0, 0, 0, 0};
+ git_diff_options diffopts = {GIT_DIFF_OPTIONS_VERSION, 0, GIT_SUBMODULE_IGNORE_UNSPECIFIED, {NULL, 0}, NULL, NULL, NULL, 3, 0, 0, 0, 0, 0, 0};
int i = 0;
git_oid oid = {0};
struct log_options opt = {0};