Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Jun 2024 05:19:00 GMT
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 3a6b9c0c0ad0 - main - net/pjsip: fix build on powerpc*
Message-ID:  <202406200519.45K5J0FH082724@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/ports/commit/?id=3a6b9c0c0ad0df2750a13b52f10b94f1ec08f654

commit 3a6b9c0c0ad0df2750a13b52f10b94f1ec08f654
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2024-06-19 17:34:13 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2024-06-20 05:18:33 +0000

    net/pjsip: fix build on powerpc*
---
 ...patch-third__party_webrtc_src_webrtc_typedefs.h | 23 ++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/net/pjsip/files/patch-third__party_webrtc_src_webrtc_typedefs.h b/net/pjsip/files/patch-third__party_webrtc_src_webrtc_typedefs.h
index e69de29bb2d1..3a44ff9c47d9 100644
--- a/net/pjsip/files/patch-third__party_webrtc_src_webrtc_typedefs.h
+++ b/net/pjsip/files/patch-third__party_webrtc_src_webrtc_typedefs.h
@@ -0,0 +1,23 @@
+--- third_party/webrtc/src/webrtc/typedefs.h.orig      2017-01-07 23:05:15 UTC
++++ third_party/webrtc/src/webrtc/typedefs.h
+@@ -48,7 +48,19 @@
+ #define WEBRTC_ARCH_32_BITS
+ #define WEBRTC_ARCH_LITTLE_ENDIAN
+ #else
+-#error Please add support for your architecture in typedefs.h
++/* instead of failing, use typical unix defines... */
++#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
++#define WEBRTC_ARCH_LITTLE_ENDIAN
++#elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
++#define WEBRTC_ARCH_BIG_ENDIAN
++#else
++#error __BYTE_ORDER__ is not defined
++#endif
++#if defined(__LP64__)
++#define WEBRTC_ARCH_64_BITS
++#else
++#define WEBRTC_ARCH_32_BITS
++#endif
+ #endif
+ 
+ #if !(defined(WEBRTC_ARCH_LITTLE_ENDIAN) ^ defined(WEBRTC_ARCH_BIG_ENDIAN))



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202406200519.45K5J0FH082724>