summary refs log tree commit diff
path: root/gnu
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2023-04-20 23:04:28 +0200
committerLudovic Courtès <ludo@gnu.org>2023-04-21 23:01:13 +0200
commit5c26e06efa38f82957154a3f0e29c27e04615542 (patch)
tree2c634a973c4c9723312a61ff71355a28916c914c /gnu
parentdc9c09023a5258de035424169b8e804acfd38cb2 (diff)
downloadguix-5c26e06efa38f82957154a3f0e29c27e04615542.tar.gz
gnu: libotr: Fix compilation with glibc 2.35.
* gnu/packages/messaging.scm (libotr)[source]: Add 'snippet'.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/messaging.scm6
1 files changed, 6 insertions, 0 deletions
diff --git a/gnu/packages/messaging.scm b/gnu/packages/messaging.scm
index 33867daafe..2fa1c45f98 100644
--- a/gnu/packages/messaging.scm
+++ b/gnu/packages/messaging.scm
@@ -460,6 +460,12 @@ powerful, standard and open protocol.")
                            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)