chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
journald: turn off COW for journal files on btrfs
[elogind.git]
/
src
/
shared
/
gpt.h
diff --git
a/src/shared/gpt.h
b/src/shared/gpt.h
index 64090e0e9baaa3a8fc78bd03d33ae5f95304d2e7..ef3444f6eaffccb3ba60be00d2a625b05811ab68 100644
(file)
--- a/
src/shared/gpt.h
+++ b/
src/shared/gpt.h
@@
-19,6
+19,8
@@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
+#include <endian.h>
+
#include "sd-id128.h"
/* We only support root disk discovery for x86, x86-64 and ARM for
#include "sd-id128.h"
/* We only support root disk discovery for x86, x86-64 and ARM for
@@
-42,10
+44,10
@@
# define GPT_ROOT_NATIVE GPT_ROOT_X86
#endif
# define GPT_ROOT_NATIVE GPT_ROOT_X86
#endif
-#if defined(__aarch64__) &&
!defined(WORDS_BIG
ENDIAN)
+#if defined(__aarch64__) &&
(__BYTE_ORDER != __BIG_
ENDIAN)
# define GPT_ROOT_NATIVE GPT_ROOT_ARM_64
# define GPT_ROOT_SECONDARY GPT_ROOT_ARM
# define GPT_ROOT_NATIVE GPT_ROOT_ARM_64
# define GPT_ROOT_SECONDARY GPT_ROOT_ARM
-#elif defined(__arm__) &&
!defined(WORDS_BIG
ENDIAN)
+#elif defined(__arm__) &&
(__BYTE_ORDER != __BIG_
ENDIAN)
# define GPT_ROOT_NATIVE GPT_ROOT_ARM
#endif
# define GPT_ROOT_NATIVE GPT_ROOT_ARM
#endif