Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37739982
en ru br
ALT Linux repos
S:2.11-alt1

Group :: System/Libraries
RPM: libpjsip

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: pjproject-aarch64.patch
Download


Index: pjproject-2.3/pjlib/include/pj/config.h
===================================================================
--- pjproject-2.3.orig/pjlib/include/pj/config.h
+++ pjproject-2.3/pjlib/include/pj/config.h
@@ -172,6 +172,26 @@
 #   define PJ_IS_LITTLE_ENDIAN	1
 #   define PJ_IS_BIG_ENDIAN	0
 
+#elif defined (PJ_M_AARCH64) || defined(__aarch64__)
+    /*
+     * 64bit ARMv8 processor
+     */
+#   undef PJ_M_AARCH64
+#   define PJ_M_AARCH64		1
+#   define PJ_M_NAME		"aarch64"
+#   define PJ_HAS_PENTIUM	0
+#   if !PJ_IS_LITTLE_ENDIAN && !PJ_IS_BIG_ENDIAN
+#      if (defined(__BYTE_ORDER__) && __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__)
+#         define PJ_IS_LITTLE_ENDIAN	1
+#         define PJ_IS_BIG_ENDIAN	0
+#      elif (defined(__BYTE_ORDER__) && __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__)
+#         define PJ_IS_LITTLE_ENDIAN	0
+#         define PJ_IS_BIG_ENDIAN	1
+#      else
+#         error Endianness must be declared for this processor
+#      endif
+#   endif
+
 #elif defined(PJ_M_IA64) || defined(__ia64__) || defined(_IA64) || \
 	defined(__IA64__) || defined( 	_M_IA64)
     /*
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin