diff options
author | Lancelot SIX <lsix@lancelotsix.com> | 2022-03-29 19:38:45 +0100 |
---|---|---|
committer | Lancelot SIX <lsix@lancelotsix.com> | 2022-03-31 22:45:32 +0100 |
commit | 494275558aca30b0afcc7967d700e658c6b2b10a (patch) | |
tree | 93629ef13257ad07b3fb703d691ed77c27ba1f35 /pkgs/development/libraries/libotr | |
parent | 462d460daecac7aa59be779a9e5491157edaee3f (diff) |
libotr: Fix build of tests/regression/client/client.c
Until this is fixed upstream, have a downstream fix so libotr can be merged.
Diffstat (limited to 'pkgs/development/libraries/libotr')
-rw-r--r-- | pkgs/development/libraries/libotr/default.nix | 2 | ||||
-rw-r--r-- | pkgs/development/libraries/libotr/fix-regtest-client.patch | 11 |
2 files changed, 13 insertions, 0 deletions
diff --git a/pkgs/development/libraries/libotr/default.nix b/pkgs/development/libraries/libotr/default.nix index bd8a521544c29..a9c1d2008af3f 100644 --- a/pkgs/development/libraries/libotr/default.nix +++ b/pkgs/development/libraries/libotr/default.nix @@ -9,6 +9,8 @@ stdenv.mkDerivation rec { sha256 = "1x8rliydhbibmzwdbyr7pd7n87m2jmxnqkpvaalnf4154hj1hfwb"; }; + patches = [ ./fix-regtest-client.patch ]; + outputs = [ "bin" "out" "dev" ]; nativeBuildInputs = [ autoreconfHook ]; diff --git a/pkgs/development/libraries/libotr/fix-regtest-client.patch b/pkgs/development/libraries/libotr/fix-regtest-client.patch new file mode 100644 index 0000000000000..bfd0007b9616c --- /dev/null +++ b/pkgs/development/libraries/libotr/fix-regtest-client.patch @@ -0,0 +1,11 @@ +diff -Nur a/tests/regression/client/client.c b/tests/regression/client/client.c +--- a/tests/regression/client/client.c 2015-12-25 17:39:45.000000000 +0000 ++++ b/tests/regression/client/client.c 2022-03-29 19:33:18.646398117 +0100 +@@ -27,6 +27,7 @@ + #include <syscall.h> + #include <sys/epoll.h> + #include <sys/types.h> ++#include <sys/socket.h> + #include <sys/un.h> + #include <unistd.h> + |