[PATCH 8/9] erofs-utils: fix tar.h
Jingbo Xu
jefflexu at linux.alibaba.com
Thu Jul 27 14:57:11 AEST 2023
Include "internal.h" to fix the dependency on prototypes of `struct
erofs_inode` and `struct erofs_sb_info`.
Signed-off-by: Jingbo Xu <jefflexu at linux.alibaba.com>
---
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
More information about the Linux-erofs
mailing list