aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/9pfuse
diff options
context:
space:
mode:
authorMerlijn Wajer <merlijn@wizzup.org>2014-11-19 00:30:46 +0100
committerRuss Cox <rsc@swtch.com>2014-12-02 01:46:43 +0000
commit9bcee1f034af98a7226e56e346c2cbe3d6a7b325 (patch)
tree1fdc00f5faa10d39083ae72d1e21ae0636ebb20d /src/cmd/9pfuse
parent709ba3c4652b7a72554cb0e13d7e64bda8d0287e (diff)
downloadplan9port-9bcee1f034af98a7226e56e346c2cbe3d6a7b325.tar.gz
plan9port-9bcee1f034af98a7226e56e346c2cbe3d6a7b325.tar.bz2
plan9port-9bcee1f034af98a7226e56e346c2cbe3d6a7b325.zip
9pfuse: Disable glibc workaround for O_LARGEFILE on ARM
9pfuse fails on ARM when O_LARGEFILE is supported. glibc does define O_LARGEFILE properly on ARM, and the value is different than what that this workaround suggests, causing it to wrongly detect bad flags. Change-Id: I02b0cc222ca7785c4b1739c3df3caa17cf7bc265 Reviewed-on: https://plan9port-review.googlesource.com/1094 Reviewed-by: Russ Cox <rsc@swtch.com>
Diffstat (limited to 'src/cmd/9pfuse')
-rw-r--r--src/cmd/9pfuse/main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/cmd/9pfuse/main.c b/src/cmd/9pfuse/main.c
index 8fa56ff4..cbce3ffd 100644
--- a/src/cmd/9pfuse/main.c
+++ b/src/cmd/9pfuse/main.c
@@ -34,8 +34,11 @@
* 0100000 in the kernel) at each file open. FUSE is all too
* happy to pass the flag onto us, where we'd have no idea what
* to do with it if we trusted glibc.
+ *
+ * On ARM however, the O_LARGEFILE is set correctly.
*/
-#if defined(__linux__)
+
+#if defined(__linux__) && !defined(__arm__)
# undef O_LARGEFILE
# define O_LARGEFILE 0100000
#endif