[PATCH v2 01/16] erofs-utils: fix tar.h
Jingbo Xu
jefflexu at linux.alibaba.com
Wed Aug 2 19:17:35 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 | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/include/erofs/tar.h b/include/erofs/tar.h
index 8d3f8de..b7c2ef8 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;
@@ -27,4 +34,8 @@ int tarerofs_parse_tar(struct erofs_inode *root, struct erofs_tarfile *tar);
int tarerofs_reserve_devtable(struct erofs_sb_info *sbi, unsigned int devices);
int tarerofs_write_devtable(struct erofs_sb_info *sbi, struct erofs_tarfile *tar);
+#ifdef __cplusplus
+}
+#endif
+
#endif
--
2.19.1.6.gb485710b
More information about the Linux-erofs
mailing list