summaryrefslogtreecommitdiffstats
path: root/apply.h
diff options
context:
space:
mode:
authorDenton Liu <liu.denton@gmail.com>2019-09-25 10:20:53 +0200
committerJunio C Hamano <gitster@pobox.com>2019-09-28 07:04:16 +0200
commit97b989ee3a9add534d561aefca0f3b65ec26a924 (patch)
treedd47ad23f0fe6c3b4c40e7e8572a7711345de479 /apply.h
parentThird batch (diff)
downloadgit-97b989ee3a9add534d561aefca0f3b65ec26a924.tar.xz
git-97b989ee3a9add534d561aefca0f3b65ec26a924.zip
apply.h: include missing header
When running `make hdr-check`, we got the following error messages: apply.h:146:22: error: use of undeclared identifier 'GIT_MAX_HEXSZ' char old_oid_prefix[GIT_MAX_HEXSZ + 1]; ^ apply.h:147:22: error: use of undeclared identifier 'GIT_MAX_HEXSZ' char new_oid_prefix[GIT_MAX_HEXSZ + 1]; ^ apply.h:151:33: error: array has incomplete element type 'struct object_id' struct object_id threeway_stage[3]; ^ ./strbuf.h:79:8: note: forward declaration of 'struct object_id' struct object_id; ^ 3 errors generated. make: *** [apply.hco] Error 1 Include the missing "hash.h" header to fix these errors. Signed-off-by: Denton Liu <liu.denton@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to '')
-rw-r--r--apply.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/apply.h b/apply.h
index a795193435..da3d95fa50 100644
--- a/apply.h
+++ b/apply.h
@@ -1,6 +1,7 @@
#ifndef APPLY_H
#define APPLY_H
+#include "hash.h"
#include "lockfile.h"
#include "string-list.h"