[Issue 24319] New: OpenBSD: Use correct type for file_time
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Jan 4 22:35:48 UTC 2024
https://issues.dlang.org/show_bug.cgi?id=24319
Issue ID: 24319
Summary: OpenBSD: Use correct type for file_time
Product: D
Version: D2
Hardware: x86
OS: Other
Status: NEW
Severity: minor
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: bcallah at openbsd.org
In https://github.com/dlang/dmd/blob/master/compiler/src/dmd/libmach.d#L488,
file_time is a c_long. However, in
https://github.com/dlang/dmd/blob/master/compiler/src/dmd/libmach.d#L228, it is
assigned from a statbuf.st_ctime, which is a time_t and thus always long on
OpenBSD. Fixing the type fixes the build on OpenBSD/i386.
--
More information about the Digitalmars-d-bugs
mailing list