syscalls: Properly match %HOST-TYPE.
Fixes <https://bugs.gnu.org/41546>.
Regression introduced in 0d371c633f
.
* guix/build/syscalls.scm (write-socket-address!)
(read-socket-address): Use 'string-contains' instead of
'string-suffix?'.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
master
parent
36640207c9
commit
b56cbe8974
|
@ -1404,7 +1404,7 @@ bytevector BV at INDEX."
|
|||
(error "unsupported socket address" sockaddr)))))
|
||||
|
||||
(define write-socket-address!
|
||||
(if (string-suffix? "linux-gnu" %host-type)
|
||||
(if (string-contains %host-type "linux-gnu")
|
||||
write-socket-address!/linux
|
||||
write-socket-address!/hurd))
|
||||
|
||||
|
@ -1436,7 +1436,7 @@ bytevector BV at INDEX."
|
|||
(vector family)))))
|
||||
|
||||
(define read-socket-address
|
||||
(if (string-suffix? "linux-gnu" %host-type)
|
||||
(if (string-contains %host-type "linux-gnu")
|
||||
read-socket-address/linux
|
||||
read-socket-address/hurd))
|
||||
|
||||
|
|
Reference in New Issue