about summary refs log tree commit diff
path: root/src/libstore/download.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2017-02-21T12·15+0100
committerEelco Dolstra <edolstra@gmail.com>2017-02-21T12·15+0100
commit99bbddedb1e70fc885e05cb398d8bfb438b039ed (patch)
treee15f582d4c522dd99dc837198da9d4efc7b7edf9 /src/libstore/download.cc
parent79f4583f8a3facdd6422ab8c8530a4f5295e1045 (diff)
Fix building without S3 support
http://hydra.nixos.org/build/49031196/nixlog/2/raw
Diffstat (limited to 'src/libstore/download.cc')
-rw-r--r--src/libstore/download.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/download.cc b/src/libstore/download.cc
index d301d4409b03..0ca41b15bf7d 100644
--- a/src/libstore/download.cc
+++ b/src/libstore/download.cc
@@ -489,7 +489,7 @@ struct CurlDownloader : public Downloader
         /* Ugly hack to support s3:// URIs. */
         if (hasPrefix(request.uri, "s3://")) {
             // FIXME: do this on a worker thread
-            sync2async<DownloadResult>(success, failure, [&]() {
+            sync2async<DownloadResult>(success, failure, [&]() -> DownloadResult {
 #ifdef ENABLE_S3
                 S3Helper s3Helper;
                 auto slash = request.uri.find('/', 5);