diff --git a/src/header/stdio/cbindgen.toml b/src/header/stdio/cbindgen.toml index dd80d4e7b9..7a6860140b 100644 --- a/src/header/stdio/cbindgen.toml +++ b/src/header/stdio/cbindgen.toml @@ -7,6 +7,9 @@ trailer = """ // XXX: this is only here because cbindgen can't handle string constants #define P_tmpdir "/tmp" +// TODO: figure out why this duplicate is needed to compile libiconv +typedef struct FILE FILE; + // A typedef doesn't suffice, because libgmp uses this definition to check if // STDIO was loaded. #define FILE FILE