efl: fix network byte order swap funcs on big endian systems
This commit is contained in:
parent
1524f886b2
commit
cc7166d474
70
srcpkgs/efl/patches/eina-bigendian.patch
Normal file
70
srcpkgs/efl/patches/eina-bigendian.patch
Normal file
@ -0,0 +1,70 @@
|
||||
From f3344941cd6cccb437a1bcd1f3ed6c2a35063f9f Mon Sep 17 00:00:00 2001
|
||||
From: Daniel Kolesa <d.kolesa@samsung.com>
|
||||
Date: Sun, 20 Oct 2019 18:49:04 +0200
|
||||
Subject: [PATCH 1/1] eina: fix network byte order swap funcs on big endian
|
||||
|
||||
---
|
||||
src/lib/eina/eina_inline_cpu.x | 12 ++++++------
|
||||
1 file changed, 6 insertions(+), 6 deletions(-)
|
||||
|
||||
diff --git a/src/lib/eina/eina_inline_cpu.x b/src/lib/eina/eina_inline_cpu.x
|
||||
index 035e5b188b..0dd293c45f 100644
|
||||
--- src/lib/eina/eina_inline_cpu.x
|
||||
+++ src/lib/eina/eina_inline_cpu.x
|
||||
@@ -83,7 +83,7 @@ eina_swap64(unsigned long long x)
|
||||
static inline unsigned short
|
||||
eina_htons(unsigned short host)
|
||||
{
|
||||
-#ifdef EINA_HAVE_BIGENDIAN
|
||||
+#ifdef EINA_HAVE_WORDS_BIGENDIAN
|
||||
return host;
|
||||
#else
|
||||
return eina_swap16(host);
|
||||
@@ -93,7 +93,7 @@ eina_htons(unsigned short host)
|
||||
static inline unsigned int
|
||||
eina_htonl(unsigned int host)
|
||||
{
|
||||
-#ifdef EINA_HAVE_BIGENDIAN
|
||||
+#ifdef EINA_HAVE_WORDS_BIGENDIAN
|
||||
return host;
|
||||
#else
|
||||
return eina_swap32(host);
|
||||
@@ -103,7 +103,7 @@ eina_htonl(unsigned int host)
|
||||
static inline unsigned long long
|
||||
eina_htonll(unsigned long long host)
|
||||
{
|
||||
-#ifdef EINA_HAVE_BIGENDIAN
|
||||
+#ifdef EINA_HAVE_WORDS_BIGENDIAN
|
||||
return host;
|
||||
#else
|
||||
return eina_swap64(host);
|
||||
@@ -113,7 +113,7 @@ eina_htonll(unsigned long long host)
|
||||
static inline unsigned short
|
||||
eina_ntohs(unsigned short net)
|
||||
{
|
||||
-#ifdef EINA_HAVE_BIGENDIAN
|
||||
+#ifdef EINA_HAVE_WORDS_BIGENDIAN
|
||||
return net;
|
||||
#else
|
||||
return eina_swap16(net);
|
||||
@@ -123,7 +123,7 @@ eina_ntohs(unsigned short net)
|
||||
static inline unsigned int
|
||||
eina_ntohl(unsigned int net)
|
||||
{
|
||||
-#ifdef EINA_HAVE_BIGENDIAN
|
||||
+#ifdef EINA_HAVE_WORDS_BIGENDIAN
|
||||
return net;
|
||||
#else
|
||||
return eina_swap32(net);
|
||||
@@ -133,7 +133,7 @@ eina_ntohl(unsigned int net)
|
||||
static inline unsigned long long
|
||||
eina_ntohll(unsigned long long net)
|
||||
{
|
||||
-#ifdef EINA_HAVE_BIGENDIAN
|
||||
+#ifdef EINA_HAVE_WORDS_BIGENDIAN
|
||||
return net;
|
||||
#else
|
||||
return eina_swap64(net);
|
||||
--
|
||||
2.23.0
|
||||
|
Loading…
x
Reference in New Issue
Block a user