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

Add wrapper around clock_gettime, needed for NetBSD #38

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

aymeric-nb
Copy link

Hi,

this patch is needed for NetBSD because struct timespec evolved (long ago) and clock_gettime() is versioned.

Compilation of sbcl fails under at least NetBSD/aarch64 because (fortunately) make-source-info explicitly requests unsigned-byte and gets served a negative value due to clock-gettime reading the struct timespec fields with an inconsistent size wrt the syscall actually made.

There are two other incorrect calls of clock_gettime() in tests/deadlock.impure.lisp, and I don't know if there is a clean way à la syscall* to fix them. Otherwise #+netbsd "sb_clock_gettime" #-netbsd "clock_gettime" should do.

Regards,

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