From be54f4a0b6f160f8a2b0b9e9c988fb5251f70a97 Mon Sep 17 00:00:00 2001 From: Asad Saeeduddin Date: Mon, 12 Mar 2018 00:56:41 -0400 Subject: Wrap thread local in function for Cygwin Fixes #1826. See #1352 for a previous instance of a similar change. --- src/libstore/download.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libstore/download.hh') diff --git a/src/libstore/download.hh b/src/libstore/download.hh index d9d525d4e6..0b8d29b21d 100644 --- a/src/libstore/download.hh +++ b/src/libstore/download.hh @@ -22,7 +22,7 @@ struct DownloadRequest std::string mimeType; DownloadRequest(const std::string & uri) - : uri(uri), parentAct(curActivity) { } + : uri(uri), parentAct(getCurActivity()) { } }; struct DownloadResult -- cgit 1.4.1