[gnome-disk-utility/gnome-3-16] Fix benchmarking on 32-bit architectures



commit f401a5671da8b543f22e76487a5b8e9c2e7a8ecd
Author: intrigeri <intrigeri boum org>
Date:   Sun Oct 26 05:46:00 2014 -0500

    Fix benchmarking on 32-bit architectures
    
    Fix by Marius Mikucionis:
    
    "the problem is that gdubenchmarkdialog.c uses signed 32bit lseek(3)
    prototype to seek the disk position and fails on offsets further than
    2^31.
    
    the fix is to switch to 64bit prototype lseek64(3) or just ensure that
    off_t is of 64bit type."
    
    https://bugzilla.gnome.org/show_bug.cgi?id=739204

 src/disks/gdubenchmarkdialog.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/disks/gdubenchmarkdialog.c b/src/disks/gdubenchmarkdialog.c
index 6f751da..e47d7b6 100644
--- a/src/disks/gdubenchmarkdialog.c
+++ b/src/disks/gdubenchmarkdialog.c
@@ -9,6 +9,7 @@
 
 #include "config.h"
 
+#define _FILE_OFFSET_BITS 64
 #include <glib/gi18n.h>
 #include <gio/gunixfdlist.h>
 #include <gio/gunixinputstream.h>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]