Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation errors on FreeBSD #293

Closed
thesnallygaster opened this issue Feb 18, 2023 · 1 comment
Closed

Compilation errors on FreeBSD #293

thesnallygaster opened this issue Feb 18, 2023 · 1 comment

Comments

@thesnallygaster
Copy link

Hi,
When compiling on FreeBSD I get these errors:
scanner/scanner.go:641:10: stat.Ctim undefined (type *syscall.Stat_t has no field or method Ctim) scanner/scanner.go:645:30: stat.Ctim undefined (type *syscall.Stat_t has no field or method Ctim)
This's been happening since this commit: https://github.com/sentriz/gonic/commit/14a266842600fae27a134590d69542dc5d0d2cfc
I can fix this by replacing Ctim with Ctimespec but as I don't really know how Go works I'm not able to change those things per OS at the moment as it seems that different OSes have different fields/methods defined in *syscall.Stat_t

@sentriz
Copy link
Owner

sentriz commented Feb 19, 2023

strage. we were assuming ctime was create time, but it's not. it's change time. same as stat.ModTime()

so it looks like we dont need that syscall stuff

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants