Include "internal.h" to fix the dependency on prototypes of `struct erofs_inode` and `struct erofs_sb_info`.
Signed-off-by: Jingbo Xu <[email protected]> --- include/erofs/tar.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/include/erofs/tar.h b/include/erofs/tar.h index 8699cb5..3a58528 100644 --- a/include/erofs/tar.h +++ b/include/erofs/tar.h @@ -2,8 +2,15 @@ #ifndef __EROFS_TAR_H #define __EROFS_TAR_H +#ifdef __cplusplus +extern "C" +{ +#endif + #include <sys/stat.h> +#include "internal.h" + struct erofs_pax_header { struct stat st; bool use_mtime; @@ -28,4 +35,9 @@ int tarerofs_write_devtable(struct erofs_sb_info *sbi, struct erofs_tarfile *tar struct erofs_dentry *erofs_get_dentry(struct erofs_inode *pwd, char *path, bool aufs, bool *whout, bool *opq); + +#ifdef __cplusplus +} +#endif + #endif -- 2.19.1.6.gb485710b
