mirror of
https://codeberg.org/guix/guix.git
synced 2026-01-25 12:05:19 -06:00
gnu: scsh: Fix build with gcc-14.
* gnu/packages/shells.scm (scsh)[arguments]<#:phases>{fix-includes}:
New phase.
Change-Id: I98d6d09e73ef4e99cc4a67cf5ec6d6ea56e82338
This commit is contained in:
parent
0587006ab1
commit
98902924ef
1 changed files with 10 additions and 1 deletions
|
|
@ -684,7 +684,16 @@ use of experts and novices alike.")
|
|||
#$(package-version scheme48)
|
||||
"/rx")))
|
||||
(delete-file-recursively "rx")
|
||||
(symlink rxpath "rx")))))))
|
||||
(symlink rxpath "rx"))))
|
||||
(add-after 'replace-rx 'fix-includes
|
||||
(lambda _
|
||||
(with-directory-excursion "c"
|
||||
(substitute* "syscalls.c"
|
||||
(("#include <stdlib.h>" all)
|
||||
(string-append all "\n#include <time.h>")))
|
||||
(substitute* "tty.c"
|
||||
(("#include <termios.h>" all)
|
||||
(string-append all "\n#include <pty.h>")))))))))
|
||||
(inputs
|
||||
(list scheme48 scheme48-rx))
|
||||
(native-inputs
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue