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:
Andreas Enge 2025-08-01 14:13:47 +02:00
parent 0587006ab1
commit 98902924ef
No known key found for this signature in database
GPG key ID: F7D5C9BF765C61E3

View file

@ -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