unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
blob 84b9499448f65d588082fd4047906cb1295541dc 753 bytes (raw)
name: gnu/packages/patches/pjproject-endianness.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
 
diff --git a/pjlib/include/pj/config.h b/pjlib/include/pj/config.h
index 10f86fd..4ace1bc 100644
--- a/pjlib/include/pj/config.h
+++ b/pjlib/include/pj/config.h
@@ -245,7 +245,13 @@
 #   define PJ_M_NAME		"armv4"
 #   define PJ_HAS_PENTIUM	0
 #   if !PJ_IS_LITTLE_ENDIAN && !PJ_IS_BIG_ENDIAN
-#   	error Endianness must be declared for this processor
+#       if defined(__GNUC__)
+#           include <endian.h>
+#           define PJ_IS_LITTLE_ENDIAN  __BYTE_ORDER__ == __LITTLE_ENDIAN__
+#           define PJ_IS_BIG_ENDIAN     __BYTE_ORDER__ == __BIG_ENDIAN__
+#       else
+#           error Endianness must be declared for this processor
+#       endif
 #   endif
 
 #elif defined (PJ_M_POWERPC) || defined(__powerpc) || defined(__powerpc__) || \

debug log:

solving 84b9499 ...
found 84b9499 in https://yhetil.org/guix-devel/87lh1xg425.fsf@openmailbox.org/

applying [1/1] https://yhetil.org/guix-devel/87lh1xg425.fsf@openmailbox.org/
diff --git a/gnu/packages/patches/pjproject-endianness.patch b/gnu/packages/patches/pjproject-endianness.patch
new file mode 100644
index 0000000..84b9499

1:24: trailing whitespace.
 
Checking patch gnu/packages/patches/pjproject-endianness.patch...
Applied patch gnu/packages/patches/pjproject-endianness.patch cleanly.
warning: 1 line adds whitespace errors.

index at:
100644 84b9499448f65d588082fd4047906cb1295541dc	gnu/packages/patches/pjproject-endianness.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).