fix sprintf on solaris

This commit is contained in:
j 2013-05-03 03:30:18 +02:00
parent d45b2f48c3
commit f07d88dc11
1 changed files with 2 additions and 0 deletions

View File

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