X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Futil%2Fmesa-sha1.c;h=faa1c871b5dea4520769c016ffa7ff2bd70a311c;hb=54daffef167974989368b4c1f9657d878a9e2411;hp=fa2819377747189b715fced2b0af768aeff030ae;hpb=3b8ccca8a3b5e03829fba7cdb57b49fc10917954;p=mesa.git diff --git a/src/util/mesa-sha1.c b/src/util/mesa-sha1.c index fa281937774..faa1c871b5d 100644 --- a/src/util/mesa-sha1.c +++ b/src/util/mesa-sha1.c @@ -26,6 +26,8 @@ #include "mesa-sha1.h" +#ifdef HAVE_SHA1 + #if defined(HAVE_SHA1_IN_LIBMD) /* Use libmd for SHA1 */ \ || defined(HAVE_SHA1_IN_LIBC) /* Use libc for SHA1 */ @@ -314,3 +316,5 @@ _mesa_sha1_format(char *buf, const unsigned char *sha1) return buf; } + +#endif