Skip to content

Commit

Permalink
HACK: XXX fix for building with linux stat
Browse files Browse the repository at this point in the history
linux stat(1) has different meaning for -f flag and incompatible
output formats:

stat -f '%z'  ->  stat -c '%s'
  • Loading branch information
sevikkk committed Nov 6, 2012
1 parent c94fd7f commit 0570f37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sys/arch/evbppc/compile/walnut-mkimg.sh
Expand Up @@ -36,7 +36,7 @@ case $file in
;;
esac

size=`stat -f '%z' ${input}.bin.$$`
size=`stat -c '%s' ${input}.bin.$$`
size=$(( ( $size + 511 ) / 512 ))

enc()
Expand Down

0 comments on commit 0570f37

Please sign in to comment.