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 @@ or server shell scripts with network connections.")
|
||||||
version ".tar.gz"))
|
version ".tar.gz"))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(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)
|
(build-system gnu-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
`(#:phases
|
||||||
|
|
Reference in a new issue