Skip to content

Commit

Permalink
Fix FreeBSD build
Browse files Browse the repository at this point in the history
  • Loading branch information
dd86k committed Oct 12, 2024
1 parent cb15b07 commit 5dc03c9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/adbg/debugger.d
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ version (Windows) {

version (USE_CLONE)
import adbg.include.posix.mann;

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

extern (C):
Expand Down
1 change: 1 addition & 0 deletions src/adbg/process/thread.d
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ version (Windows) {
import core.sys.posix.dirent;
import core.sys.posix.libgen : basename;
} else version (FreeBSD) {
import core.stdc.stdlib : malloc, free;
import adbg.include.freebsd.ptrace;
import adbg.include.freebsd.reg;
import core.sys.posix.sys.types : pid_t;
Expand Down

0 comments on commit 5dc03c9

Please sign in to comment.