From 255c62b6952ebcc345530909a7a4d7f5a8da0b8b Mon Sep 17 00:00:00 2001 From: Paolo Borelli Date: Tue, 25 Dec 2007 21:21:32 +0000 Subject: [PATCH] fix typo in the ifdef used to detect statbuf->st_blocks. (#505042) 2007-12-25 Paolo Borelli * glocalfileinfo.c (set_info_from_stat): fix typo in the ifdef used to detect statbuf->st_blocks. (#505042) svn path=/trunk/; revision=6202 --- gio/ChangeLog | 5 +++++ gio/glocalfileinfo.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gio/ChangeLog b/gio/ChangeLog index 6f1636e4..58d46675 100644 --- a/gio/ChangeLog +++ b/gio/ChangeLog @@ -1,3 +1,8 @@ +2007-12-25 Paolo Borelli + + * glocalfileinfo.c (set_info_from_stat): fix typo in the ifdef + used to detect statbuf->st_blocks. (#505042) + 2007-12-24 Matthias Clasen * gdesktopappinfo.c (g_desktop_app_info_launch): Fix the diff --git a/gio/glocalfileinfo.c b/gio/glocalfileinfo.c index a633fd17..78f790c4 100644 --- a/gio/glocalfileinfo.c +++ b/gio/glocalfileinfo.c @@ -906,10 +906,10 @@ set_info_from_stat (GFileInfo *info, g_file_info_set_attribute_uint32 (info, G_FILE_ATTRIBUTE_UNIX_UID, statbuf->st_uid); g_file_info_set_attribute_uint32 (info, G_FILE_ATTRIBUTE_UNIX_GID, statbuf->st_gid); g_file_info_set_attribute_uint32 (info, G_FILE_ATTRIBUTE_UNIX_RDEV, statbuf->st_rdev); -#if defined (HAVE_STRUCT_STAT_BLKSIZE) +#if defined (HAVE_STRUCT_STAT_ST_BLKSIZE) g_file_info_set_attribute_uint32 (info, G_FILE_ATTRIBUTE_UNIX_BLOCK_SIZE, statbuf->st_blksize); #endif -#if defined (HAVE_STRUCT_STAT_BLOCKS) +#if defined (HAVE_STRUCT_STAT_ST_BLOCKS) g_file_info_set_attribute_uint64 (info, G_FILE_ATTRIBUTE_UNIX_BLOCKS, statbuf->st_blocks); #endif -- 2.34.1