gnu: libotr: Fix compilation with glibc 2.35.

* gnu/packages/messaging.scm (libotr)[source]: Add 'snippet'.
This commit is contained in:
Ludovic Courtès 2023-04-20 23:04:28 +02:00
parent dc9c09023a
commit 5c26e06efa
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -460,6 +460,12 @@ (define-public libotr
version ".tar.gz"))
(sha256
(base32 "1x8rliydhbibmzwdbyr7pd7n87m2jmxnqkpvaalnf4154hj1hfwb"))
(modules '((guix build utils)))
(snippet
;; Add missing #include that causes a build failure with glibc 2.35.
#~(substitute* "tests/regression/client/client.c"
(("_GNU_SOURCE" all)
(string-append all "\n#include <sys/socket.h>\n"))))
(patches
(search-patches "libotr-test-auth-fix.patch"))))
(build-system gnu-build-system)