[gnome-disk-utility] Enable Large File Support for Disks
- From: Kai Lüke <kailueke src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-disk-utility] Enable Large File Support for Disks
- Date: Mon, 29 May 2017 11:42:39 +0000 (UTC)
commit cce55eed1fd1d3fb282b0ec70edb72ceefe568f7
Author: Mitchell Horne <mhorne063 gmail com>
Date: Thu May 25 20:43:15 2017 -0400
Enable Large File Support for Disks
Dealing with large files (2 GiB+) on 32-bit systems requires
special compiler flags to enable support. Currently, any
attempt to mount or create a large image file in Disks
results in an error.
The fix is to add the proper compiler flags to enable LFS.
https://bugzilla.gnome.org/show_bug.cgi?id=754155
configure.ac | 3 +++
src/disks/gdubenchmarkdialog.c | 1 -
2 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 4bffcad..5504099 100644
--- a/configure.ac
+++ b/configure.ac
@@ -42,6 +42,9 @@ AC_MSG_RESULT([yes])
AC_DEFINE([HAVE_FALLOCATE],[1],[Have valid fallocate() function])],[
AC_MSG_RESULT([no])])
+CFLAGS="${CFLAGS} `getconf LFS_CFLAGS`"
+LDFLAGS="${LDFLAGS} `getconf LFS_LIBS`"
+
# ***************************
# Check for required packages
# ***************************
diff --git a/src/disks/gdubenchmarkdialog.c b/src/disks/gdubenchmarkdialog.c
index eb918bb..bf7c29e 100644
--- a/src/disks/gdubenchmarkdialog.c
+++ b/src/disks/gdubenchmarkdialog.c
@@ -9,7 +9,6 @@
#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]