--- a/giscanner/ast.py
+++ b/giscanner/ast.py
@@ -346,7 +346,8 @@
type_names['ssize_t'] = type_names['gssize']
type_names['uintptr_t'] = type_names['guintptr']
type_names['intptr_t'] = type_names['gintptr']
-type_names['time_t'] = TYPE_LONG
+# musl libc 1.2 and newer uses 64 time_t for all arches
+type_names['time_t'] = TYPE_INT64
type_names['off_t'] = type_names['gsize']
type_names['pid_t'] = TYPE_INT
type_names['uid_t'] = TYPE_UINT
--- a/tests/scanner/Regress-1.0-expected.gir
+++ b/tests/scanner/Regress-1.0-expected.gir
@@ -2003,7 +2003,7 @@ uses a C sugar return type.
-
+
@@ -8381,11 +8381,11 @@ https://bugzilla.gnome.org/show_bug.cgi?id=685399
-
+
-
+