about summary refs log tree commit diff
path: root/src/libstore
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2016-12-08T14·35+0100
committerEelco Dolstra <edolstra@gmail.com>2016-12-08T14·35+0100
commitfe1162a8051194bc6e741408c5feb45ed1be18d8 (patch)
treedba01ae028827a2b4544255ce8d95f99ec4b92ef /src/libstore
parente6a61b8da788efbbbb0eb690c49434b6b5fc9741 (diff)
S3BinaryCacheStore: Ensure it only builds on Linux
Diffstat (limited to 'src/libstore')
-rw-r--r--src/libstore/s3-binary-cache-store.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libstore/s3-binary-cache-store.cc b/src/libstore/s3-binary-cache-store.cc
index 3c5101f0009a..5361bd9da74a 100644
--- a/src/libstore/s3-binary-cache-store.cc
+++ b/src/libstore/s3-binary-cache-store.cc
@@ -1,6 +1,7 @@
 #include "config.h"
 
 #if ENABLE_S3
+#if __linux__
 
 #include "s3-binary-cache-store.hh"
 #include "nar-info.hh"
@@ -269,3 +270,4 @@ static RegisterStoreImplementation regStore([](
 }
 
 #endif
+#endif