I needed to compile nbdkit on CentOS 7 which is missing these protocols in curl, so hence the conditional compilation.
Signed-off-by: Martin Kletzander <mklet...@redhat.com> --- I have this patch so that I can compile it on CentOS 7 (fully updated), but I'm not sure what is the support policy and I didn't even check whether the libcurl there is old or whether the SMB support is removed on purpose. plugins/curl/curl.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/curl/curl.c b/plugins/curl/curl.c index 7e3e8c923721..acd3333d5b88 100644 --- a/plugins/curl/curl.c +++ b/plugins/curl/curl.c @@ -118,8 +118,12 @@ static struct { const char *name; long bitmask; } curl_protocols[] = { { "rtmps", CURLPROTO_RTMPS }, { "rtmpts", CURLPROTO_RTMPTS }, { "gopher", CURLPROTO_GOPHER }, +#ifdef CURLPROTO_SMB { "smb", CURLPROTO_SMB }, +#endif /* CURLPROTO_SMB */ +#ifdef CURLPROTO_SMBS { "smbs", CURLPROTO_SMBS }, +#endif /* CURLPROTO_SMBS */ { NULL } }; -- 2.23.0 _______________________________________________ Libguestfs mailing list Libguestfs@redhat.com https://www.redhat.com/mailman/listinfo/libguestfs