mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-24 11:39:46 -05:00
gnu: tcp-wrappers: Allow compilation with glibc 2.33.
* gnu/packages/networking.scm (tcp-wrappers)[source]: Add 'snippet'.
This commit is contained in:
parent
83010a08bc
commit
ce67634629
1 changed files with 11 additions and 1 deletions
|
@ -995,7 +995,17 @@ (define-public tcp-wrappers
|
|||
version ".tar.gz"))
|
||||
(sha256
|
||||
(base32
|
||||
"0p9ilj4v96q32klavx0phw9va21fjp8vpk11nbh6v2ppxnnxfhwm"))))
|
||||
"0p9ilj4v96q32klavx0phw9va21fjp8vpk11nbh6v2ppxnnxfhwm"))
|
||||
(modules '((guix build utils)))
|
||||
(snippet
|
||||
;; 'sys_errlist' & co. are gone in glibc 2.33; work around it.
|
||||
'(substitute* "percent_m.c"
|
||||
(("sys_errlist\\[errno\\]")
|
||||
"strerror (errno)")
|
||||
(("errno < sys_nerr")
|
||||
"(1)")
|
||||
(("errno >= sys_nerr")
|
||||
"(0)")))))
|
||||
(build-system gnu-build-system)
|
||||
(arguments
|
||||
`(#:phases
|
||||
|
|
Loading…
Reference in a new issue