Skip to content

Commit

Permalink
dumper: Fix FreeBSD build
Browse files Browse the repository at this point in the history
  • Loading branch information
dd86k committed Oct 12, 2024
1 parent 5dc03c9 commit 766c4e0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/adbg/os/file.d
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@ version (Windows) {
private extern (C) int ioctl(int,off_t,...);

private alias OSHANDLE = int;

version (FreeBSD) {
// pragma(mangle, "fstat@FBSD_1.5")
// leads to incorrect linked version
extern (C) int fstat(int, stat_t*);
}
}

import adbg.error;
Expand Down

0 comments on commit 766c4e0

Please sign in to comment.