Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / libchop / 0001-Fix-RPC-compilation-when-using-libtirpc-rather-than-.patch
blobf5a016f63ac3e0a91594b13a4a4d3e9ea0fa1b95
1 From 86fd3be1d31d2e7c09603aa3a8966537ac01bb07 Mon Sep 17 00:00:00 2001
2 From: Maximilian Bosch <maximilian@mbosch.me>
3 Date: Tue, 11 Aug 2020 20:30:16 +0200
4 Subject: [PATCH] Fix RPC compilation when using libtirpc rather than glibc
6 ---
7 src/block-server.c | 3 +++
8 utils/chop-block-server.c | 3 +++
9 2 files changed, 6 insertions(+)
11 diff --git a/src/block-server.c b/src/block-server.c
12 index 3f97417..29b299e 100644
13 --- a/src/block-server.c
14 +++ b/src/block-server.c
15 @@ -18,6 +18,9 @@
17 /* Server-side stubs. */
19 +#include <rpc/types.h>
20 +#include <rpc/xdr.h>
21 +#include <rpc/auth.h>
22 #include <rpc/svc.h>
23 #include <chop/block-server.h>
25 diff --git a/utils/chop-block-server.c b/utils/chop-block-server.c
26 index a2076c0..9462f5d 100644
27 --- a/utils/chop-block-server.c
28 +++ b/utils/chop-block-server.c
29 @@ -19,6 +19,9 @@
30 store, e.g. a GDBM block store, and serves it remotely. A lot of code is
31 borrowed from `chop-archiver.c'. */
33 +#include <rpc/types.h>
34 +#include <rpc/xdr.h>
35 +#include <rpc/auth.h>
36 #include <chop/chop-config.h>
38 #include <alloca.h>
39 --
40 2.25.4