"Eric W. Biederman" <ebiederm@xxxxxxxxxxxx> writes: > diff --git a/pack-write.c b/pack-write.c > index b19ddf15b284..f22eea964f77 100644 > --- a/pack-write.c > +++ b/pack-write.c > @@ -12,6 +12,7 @@ > #include "pack-revindex.h" > #include "path.h" > #include "strbuf.h" > +#include "object-file-convert.h" > ... > +/* > + * The *hash contains the pack content hash. > + * The objects array is passed in sorted. > + */ > +const char *write_compat_map_file(const char *compat_map_name, > + struct pack_idx_entry **objects, > + int nr_objects, const unsigned char *hash) Include "pack-compat-map.h"; otherwise the compiler would complain for missing prototypes.