Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37744288
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-ppc64.patch
Download


--- pjproject-2.4/pjlib/include/pj/config.h.orig	2015-05-05 11:41:56.300102158 +0100
+++ pjproject-2.4/pjlib/include/pj/config.h	2015-05-05 11:44:45.400282720 +0100
@@ -287,7 +287,15 @@
 #   define PJ_M_NAME		"powerpc"
 #   define PJ_HAS_PENTIUM	0
 #   if !PJ_IS_LITTLE_ENDIAN && !PJ_IS_BIG_ENDIAN
-#   	error Endianness must be declared for this processor
+#      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_NIOS2) || defined(__nios2) || defined(__nios2__) || \
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin