Skip to content

Commit cd5ba7e

Browse files
committed
Rewrite in6_addr::__in6_u::__u8_addr8 as libc::in6_addr::s6_addr (Cpp2Rust#177)
1 parent f41f145 commit cd5ba7e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

cpp2rust/converter/converter.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2689,6 +2689,7 @@ replaceNonUniformLibcField(clang::MemberExpr *expr) {
26892689
static constexpr Mapping kFields[] = {
26902690
{"stat", "st_mtim", "tv_sec", "st_mtime"}, // Linux
26912691
{"stat", "st_mtimespec", "tv_sec", "st_mtime"}, // macOS
2692+
{"in6_addr", "__in6_u", "__u6_addr8", "s6_addr"},
26922693
};
26932694

26942695
auto getNamedIdentifierOrNull = [](auto *decl) {

0 commit comments

Comments
 (0)