util: make mesa-sha1.c completely empty when there are no SHA1 impls
authorIlia Mirkin <imirkin@alum.mit.edu>
Mon, 7 Sep 2015 04:06:51 +0000 (00:06 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Mon, 7 Sep 2015 04:18:12 +0000 (00:18 -0400)
commitae535cb0bf86e3ae376d42f4fd064bb73c22427e
tree003b0193607b8ee803baaff8a96c3075116a9b95
parent13bfa5201162185005fa9a45f7bc76e5909ab193
util: make mesa-sha1.c completely empty when there are no SHA1 impls

My earlier attempt to fix this missed the fact that there was a #else
clause that assumes that you have openssh. This moves the whole thing
under #ifdef HAVE_SHA1 which should avoid this issue.

Fixes: 13bfa5201 (util: always include sha1 into the build)
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=91898
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Dave Airlie <airlied@gmail.com>
src/util/mesa-sha1.c