From e5451510fc526cb79fc84ceca5f19e93fab442f5 Mon Sep 17 00:00:00 2001 From: auronandace Date: Fri, 24 Apr 2026 12:06:43 +0100 Subject: [PATCH] fix libiconv compilation --- src/header/stdio/cbindgen.toml | 3 +++ 1 file changed, 3 insertions(+) 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