mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 23:46:13 -05:00
syscalls: Report lack of a libc symbol as ENOSYS.
* guix/build/syscalls.scm (syscall->procedure): Throw to 'system-error with ENOSYS when NAME cannot be found.
This commit is contained in:
parent
8a8662d286
commit
f8121329b1
1 changed files with 2 additions and 2 deletions
|
@ -385,8 +385,8 @@ (define (syscall->procedure return-type name argument-types)
|
|||
#:return-errno? #t)))
|
||||
(lambda args
|
||||
(lambda _
|
||||
(error (format #f "~a: syscall->procedure failed: ~s"
|
||||
name args))))))
|
||||
(throw 'system-error name "~A" (list (strerror ENOSYS))
|
||||
(list ENOSYS))))))
|
||||
|
||||
(define-syntax define-as-needed
|
||||
(syntax-rules ()
|
||||
|
|
Loading…
Reference in a new issue