[gnome-disk-utility] Fix benchmarking on 32-bit architectures
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-disk-utility] Fix benchmarking on 32-bit architectures
- Date: Wed, 13 May 2015 22:43:19 +0000 (UTC)
commit d398e17d0423199d2e61e92ad4a6c6b627fbe679
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 726e8ba..22fe98a 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]