From: msweet Date: Thu, 19 Nov 2015 15:27:44 +0000 (+0000) Subject: Fix compile error on Linux. X-Git-Tag: v2.2b1~144 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3ce45fb70af3018fff4f596d2865003b2ea25d94;p=thirdparty%2Fcups.git Fix compile error on Linux. git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@12993 a1ca3aef-8c08-0410-bb20-df032aa958be --- diff --git a/cups/hash.c b/cups/hash.c index 1d7b0dbad2..e20590f26d 100644 --- a/cups/hash.c +++ b/cups/hash.c @@ -21,6 +21,8 @@ #include "cups-private.h" #ifdef __APPLE__ # include +#elif defined(HAVE_GNUTLS) +# include #endif /* __APPLE__ */ @@ -206,7 +208,7 @@ cupsHashData(const char *algorithm, /* I - Algorithm name */ gnutls_hash_fast(alg, data, datalen, temp); memcpy(hash, temp, tempsize); - return (tempsize); + return ((ssize_t)tempsize); } if (hashsize < gnutls_hash_get_len(alg))