blob: 53066bebb230b1af8ba9042fffff2516aa3f0007 (
plain) (
tree)
|
|
--- 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.</doc>
<type name="FooObject" c:type="RegressFooObject*"/>
</instance-parameter>
<parameter name="time" transfer-ownership="none">
- <type name="glong" c:type="time_t"/>
+ <type name="gint64" c:type="time_t"/>
</parameter>
</parameters>
</method>
@@ -8381,11 +8381,11 @@ https://bugzilla.gnome.org/show_bug.cgi?id=685399</doc>
<function name="test_timet" c:identifier="regress_test_timet">
<source-position filename="regress.h" line="94"/>
<return-value transfer-ownership="none">
- <type name="glong" c:type="time_t"/>
+ <type name="gint64" c:type="time_t"/>
</return-value>
<parameters>
<parameter name="in" transfer-ownership="none">
- <type name="glong" c:type="time_t"/>
+ <type name="gint64" c:type="time_t"/>
</parameter>
</parameters>
</function>
|