diff options
author | Ludovic Courtès <ludo@gnu.org> | 2023-11-23 15:18:32 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2023-11-25 16:29:25 +0100 |
commit | a14dafaa01497f733419b5a738baf5822544ebc4 (patch) | |
tree | d1b133b668e0092be97897aba0f04e8d05ca76e4 /tests/guix-pack.sh | |
parent | 1566e00fbc87ba7b6320be7f587e2e5e5c082b38 (diff) | |
download | guix-a14dafaa01497f733419b5a738baf5822544ebc4.tar guix-a14dafaa01497f733419b5a738baf5822544ebc4.tar.gz |
syscalls: Add fallback case for ‘terminal-string-width’.
This makes ‘terminal-string-width’ synonymous with ‘string-length’ when
running one a statically-linked Guile, as is the case in some unit
tests, instead of throwing ENOSYS.
* guix/build/syscalls.scm (terminal-string-width): Use ‘dynamic-func’
and ‘pointer->procedure’ instead of ‘syscall->procedure’. Return
‘string-length’ when one of the ‘dynamic-func’ calls fails.
Change-Id: Icf55c9e7c34b46fac91b665fb4a2ecb02160f22e
Diffstat (limited to 'tests/guix-pack.sh')
0 files changed, 0 insertions, 0 deletions