fix sprintf on solaris

This commit is contained in:
j 2013-05-03 03:30:18 +02:00
parent d45b2f48c3
commit f07d88dc11

View file

@ -104,6 +104,8 @@ int print_oshash(FILE *output, char const *filename) {
char hash[32]; char hash[32];
#ifdef WIN32 #ifdef WIN32
sprintf(hash, "%016I64x", gen_oshash(filename)); sprintf(hash, "%016I64x", gen_oshash(filename));
#elif defined (__SVR4) && defined (__sun)
sprintf(hash,"%016llx", gen_oshash(filename));
#else #else
sprintf(hash, "%016qx", gen_oshash(filename)); sprintf(hash, "%016qx", gen_oshash(filename));
#endif #endif