diff --git a/bench b/bench index b700704..38145ae 100755 --- a/bench +++ b/bench @@ -30,7 +30,7 @@ # Use is subject to license terms. # -bench_version=0.4.0 +bench_version=0.4.1 libmicro_version=`bin/tattle -V` case $libmicro_version in @@ -65,7 +65,14 @@ mkdir -p $VDIR1 $VDIR2 touch $IFILE -ARCH=`arch -k` +DISTRO=$(cat /etc/issue 2> /dev/null | head -n +1 | awk '{print $1}') + +if [ "$DISTRO" = "Debian" -o "$DISTRO" = "Ubuntu" ] +then + ARCH=`arch` +else + ARCH=`arch -k` +fi # produce benchmark header for easier comparisons diff --git a/bench.sh b/bench.sh index 7aba977..38145ae 100644 --- a/bench.sh +++ b/bench.sh @@ -65,7 +65,14 @@ mkdir -p $VDIR1 $VDIR2 touch $IFILE -ARCH=`arch -k` +DISTRO=$(cat /etc/issue 2> /dev/null | head -n +1 | awk '{print $1}') + +if [ "$DISTRO" = "Debian" -o "$DISTRO" = "Ubuntu" ] +then + ARCH=`arch` +else + ARCH=`arch -k` +fi # produce benchmark header for easier comparisons diff --git a/cascade_flock.c b/cascade_flock.c index 27d95d1..33607d2 100644 --- a/cascade_flock.c +++ b/cascade_flock.c @@ -46,6 +46,7 @@ #include #include #include +#include #include "libmicro.h" diff --git a/mmap.c b/mmap.c index 44b8b58..14123f5 100644 --- a/mmap.c +++ b/mmap.c @@ -33,7 +33,7 @@ #include #include #include -#include +#include #include "libmicro.h" diff --git a/mprotect.c b/mprotect.c index 5d08b9e..f621ed2 100644 --- a/mprotect.c +++ b/mprotect.c @@ -33,7 +33,7 @@ #include #include #include -#include +#include #include "libmicro.h" diff --git a/munmap.c b/munmap.c index 7979dbb..0a50f9d 100644 --- a/munmap.c +++ b/munmap.c @@ -33,7 +33,7 @@ #include #include #include -#include +#include #include "libmicro.h"