pkgsrc/sysutils/rox/patches/patch-ac
2009-12-10 16:28:44 +00:00

21 lines
696 B
Text

$NetBSD: patch-ac,v 1.6 2009/12/10 16:28:44 joerg Exp $
--- ROX-Filer/src/pixmaps.c.orig 2009-07-18 16:23:18.000000000 +0200
+++ ROX-Filer/src/pixmaps.c
@@ -34,6 +34,7 @@
#include <stdio.h>
#include <errno.h>
#include <fcntl.h>
+#include <inttypes.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <string.h>
@@ -432,7 +433,7 @@ static void save_thumbnail(const char *p
swidth = g_strdup_printf("%d", original_width);
sheight = g_strdup_printf("%d", original_height);
- ssize = g_strdup_printf("%" SIZE_FMT, info.st_size);
+ ssize = g_strdup_printf("%" SIZE_FMT, (intmax_t) info.st_size);
smtime = g_strdup_printf("%ld", (long) info.st_mtime);
path = pathdup(pathname);