aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/libstore/pathlocks.cc1
-rw-r--r--tests/post-hook.sh2
-rwxr-xr-xtests/push-to-store.sh (renamed from tests/push_to_store.sh)0
3 files changed, 2 insertions, 1 deletions
diff --git a/src/libstore/pathlocks.cc b/src/libstore/pathlocks.cc
index b6d8547c7..2635e3940 100644
--- a/src/libstore/pathlocks.cc
+++ b/src/libstore/pathlocks.cc
@@ -5,6 +5,7 @@
#include <cerrno>
#include <cstdlib>
+#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/file.h>
diff --git a/tests/post-hook.sh b/tests/post-hook.sh
index 3f82d0c5e..a02657215 100644
--- a/tests/post-hook.sh
+++ b/tests/post-hook.sh
@@ -5,7 +5,7 @@ clearStore
export REMOTE_STORE=$TEST_ROOT/remote_store
# Build the dependencies and push them to the remote store
-nix-build dependencies.nix --post-build-hook $PWD/push_to_store.sh
+nix-build -o $TEST_ROOT/result dependencies.nix --post-build-hook $PWD/push-to-store.sh
clearStore
diff --git a/tests/push_to_store.sh b/tests/push-to-store.sh
index d97eb095d..d97eb095d 100755
--- a/tests/push_to_store.sh
+++ b/tests/push-to-store.sh