forked from pool/erofs-utils
Accepting request 684562 from openSUSE:Factory:zSystems
- add definition for cpu_to_le64 for big endian systems OBS-URL: https://build.opensuse.org/request/show/684562 OBS-URL: https://build.opensuse.org/package/show/filesystems/erofs-utils?expand=0&rev=4
This commit is contained in:
parent
c0346552e7
commit
9c70983b82
@ -8,7 +8,7 @@ Index: erofs-utils-0.0.1~4/erofs_types.h
|
||||
===================================================================
|
||||
--- erofs-utils-0.0.1~4.orig/erofs_types.h
|
||||
+++ erofs-utils-0.0.1~4/erofs_types.h
|
||||
@@ -26,13 +26,24 @@
|
||||
@@ -26,13 +26,25 @@
|
||||
#define s32 int32_t
|
||||
#define s64 int64_t
|
||||
|
||||
@ -24,6 +24,7 @@ Index: erofs-utils-0.0.1~4/erofs_types.h
|
||||
+ /* We need to use constexpr functions, and htole16 unfortunately is not. */
|
||||
+# define cpu_to_le16(x) __builtin_bswap16(x)
|
||||
+# define cpu_to_le32(x) __builtin_bswap32(x)
|
||||
+# define cpu_to_le64(x) __builtin_bswap64(x)
|
||||
+# define cpu_to_be64(x) (x)
|
||||
+# define le16_to_cpu(x) __builtin_bswap16(x)
|
||||
+# define le32_to_cpu(x) __builtin_bswap32(x)
|
||||
|
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Mar 13 08:37:18 UTC 2019 - <gunreben@t-online.de>
|
||||
|
||||
- add definition for cpu_to_le64 for big endian systems
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Dec 10 10:11:43 UTC 2018 - Jan Engelhardt <jengelh@inai.de>
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package erofs-utils
|
||||
#
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -12,7 +12,7 @@
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
@ -22,7 +22,7 @@ Release: 0
|
||||
Summary: Utilities for the Extendable Read-Only Filesystem (EROFS)
|
||||
License: GPL-2.0-or-later
|
||||
Group: System/Filesystems
|
||||
URL: https://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs-utils.git/
|
||||
Url: https://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs-utils.git/
|
||||
Source: %name-%version.tar.xz
|
||||
Source2: https://github.com/lz4/lz4/archive/v1.8.3.tar.gz#/lz4-1.8.3.tar.gz
|
||||
Patch1: constant.diff
|
||||
|
Loading…
Reference in New Issue
Block a user