xfsprogs/0001-xfsprogs-Add-sw64-architecture.patch
2022-11-19 17:57:52 +08:00

38 lines
899 B
Diff

From 2e7288a16fedf40326641cb7928d6f1dc4ef3185 Mon Sep 17 00:00:00 2001
From: wzx <wuzx1226@qq.com>
Date: Wed, 26 Oct 2022 11:27:26 +0800
Subject: [PATCH] Add sw64 architecture
Add sw64 architecture in file open.c to support sw64 architecture.
Signed-off-by: wzx <wuzx1226@qq.com>
---
io/open.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/io/open.c b/io/open.c
index d807266..e7329a8 100644
--- a/io/open.c
+++ b/io/open.c
@@ -14,7 +14,7 @@
#include "libfrog/bulkstat.h"
#ifndef __O_TMPFILE
-#if defined __alpha__
+#if defined __alpha__ || defined __sw_64__
#define __O_TMPFILE 0100000000
#elif defined(__hppa__)
#define __O_TMPFILE 040000000
@@ -30,7 +30,7 @@
#endif
#ifndef O_PATH
-#if defined __alpha__
+#if defined __alpha__ || defined __sw_64__
#define O_PATH 040000000
#elif defined(__hppa__)
#define O_PATH 020000000
--
2.33.0