aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2005-01-04 17:38:26 +0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2005-01-04 17:38:26 +0000
commita03397be4c176c142871e7337dfef7734cd508ca (patch)
treee871178dacc33fadae454d4d51134374d9c80e2f
parentf28ea27d83741caf38b8ac7de317d13a2904f54a (diff)
* Cygwin compatibility.
-rw-r--r--src/libstore/normalise.cc1
-rw-r--r--tests/parallel.builder.sh4
2 files changed, 3 insertions, 2 deletions
diff --git a/src/libstore/normalise.cc b/src/libstore/normalise.cc
index 044eeab94..d535fe2ee 100644
--- a/src/libstore/normalise.cc
+++ b/src/libstore/normalise.cc
@@ -5,6 +5,7 @@
#include <sys/types.h>
#include <sys/stat.h>
+#include <sys/time.h>
#include <fcntl.h>
#include <unistd.h>
#include <errno.h>
diff --git a/tests/parallel.builder.sh b/tests/parallel.builder.sh
index d6d0bedf4..23926110f 100644
--- a/tests/parallel.builder.sh
+++ b/tests/parallel.builder.sh
@@ -10,7 +10,7 @@ while ! ln -s x $shared.lock; do
done
test -f $shared.cur || echo 0 > $shared.cur
test -f $shared.max || echo 0 > $shared.max
-new=$(($(cat $shared.cur) + 1))
+new=$(expr $(cat $shared.cur) + 1)
if test $new -gt $(cat $shared.max); then
echo $new > $shared.max
fi
@@ -28,5 +28,5 @@ while ! ln -s x $shared.lock; do
sleep 1
done
test -f $shared.cur || echo 0 > $shared.cur
-echo $(($(cat $shared.cur) - 1)) > $shared.cur
+echo $(expr $(cat $shared.cur) - 1) > $shared.cur
rm $shared.lock