aboutsummaryrefslogtreecommitdiff
This patch is borrowed from Debian's patches for plink

Author: Peter Green <plugwash@p10link.net>
Puropose: Fallback to endian.h if all else fails on 64bit machines
Closes: #528659
Forwarded: Shaun Purcell <plink@chgr.mgh.harvard.edu>
License: same as plink itself.
===================================================================
--- plink-1.06.orig/Rsrv.h	2009-05-15 03:35:29.000000000 +0100
+++ plink-1.06/Rsrv.h	2009-05-15 03:35:41.000000000 +0100
@@ -313,7 +313,18 @@
 #define __BIG_ENDIAN__ 1
 #define SWAPEND 1
 #elif ! defined Win32 /* Windows is little-endian is most cases, anywhere else we're stuck */
-#error "Cannot determine endianness. Make sure config.h is included or __{BIG|LITTLE}_ENDIAN__ is defined ."
+  //try endian.h before we finally bail out
+  #include <endian.h>
+  #if __BYTE_ORDER == __LITTLE_ENDIAN
+    #warning using little endian based on information from endian.h
+    #define __LITTLE_ENDIAN__ 1
+  #elif __BYTE_ORDER == __BIG_ENDIAN
+    #warning using big endian based on information from endian.h
+    #define __BIG_ENDIAN__ 1
+    #define SWAPEND 1
+  #else    
+    #error "Cannot determine endianness. Make sure config.h is included or __{BIG|LITTLE}_ENDIAN__ is defined ."
+  #endif    
 #endif
 
 /* FIXME: all the mess below needs more efficient implementation - the current one is so messy to work around alignment problems on some platforms like Sun and HP 9000 */
ssi): Update to 1.4.5. Signed-off-by: Christopher Baines <mail@cbaines.net> André Batista 2023-09-10gnu: glirc: Re-indent....No functional change. * gnu/packages/irc.scm (glirc): C-M-q. Tobias Geerinckx-Rice 2023-09-10gnu: Add glirc-lua....* gnu/packages/irc.scm (glirc-lua): New public variable. Tobias Geerinckx-Rice 2023-08-23gnu: weechat: Update to 4.0.4....* gnu/packages/irc.scm (weechat): Update to 4.0.4. Signed-off-by: 宋文武 <iyzsong@member.fsf.org> Michael Ford 2023-08-23gnu: sic: Update to 1.3....* gnu/packages/irc.scm (sic): Update to 1.3. Signed-off-by: 宋文武 <iyzsong@member.fsf.org> Michael Ford 2023-08-18gnu: Add snuik....* gnu/packages/irc.scm (snuik): New variable. Janneke Nieuwenhuizen 2023-07-30gnu: catgirl: Use G-expressions....* gnu/packages/irc.scm (catgirl)[arguments]: Rewrite as G-expressions. Tobias Geerinckx-Rice 2023-07-30gnu: catgirl: Update to 2.2....* gnu/packages/irc.scm (catgirl): Update to 2.2. Tobias Geerinckx-Rice 2023-07-30gnu: catgirl: Don't use snapshot tarball....* gnu/packages/irc.scm (catgirl)[source]: Use GIT-FETCH and GIT-FILE-NAME. Tobias Geerinckx-Rice 2023-07-30gnu: glirc: Extend description....* gnu/packages/irc.scm (glirc)[description]: Extend. Tobias Geerinckx-Rice 2023-07-30gnu: glirc: Install man page and README.md....* gnu/packages/irc.scm (glirc)[arguments]: Add a new 'install-extra-documentation phase. Tobias Geerinckx-Rice 2023-07-30gnu: Remove duplicate module import from (gnu packages irc)....* gnu/packages/irc.scm: Remove duplicate #:use-module (guix utils). Tobias Geerinckx-Rice 2023-07-23gnu: Add glirc....* gnu/packages/irc.scm (glirc): New public variable. Tobias Geerinckx-Rice 2023-07-28gnu: weechat: Update to 4.0.2....* gnu/packages/irc.scm (weechat): Update to 4.0.2. Signed-off-by: 宋文武 <iyzsong@member.fsf.org> fanquake 2023-06-30gnu: weechat: Update to 4.0.0....* gnu/packages/irc.scm (weechat): Update to 4.0.0. [arguments]: Adjust the configure-flags to continue enable building the docs. Efraim Flashner 2023-05-20gnu: irssi: Update to 1.4.4....* gnu/packages/irc.scm (irssi): Update to 1.4.4. André Batista 2023-04-30gnu: inspircd: Build with mariadb....* gnu/packages/irc.scm (inspircd)[inputs]: Remove mysql. Add mariadb:dev. Efraim Flashner 2023-02-17gnu: Add chathistorysync....* gnu/packages/irc.scm (chathistorysync): New variable. Co-authored-by: ( <paren@disroot.org> Signed-off-by: Christopher Baines <mail@cbaines.net> jgart 2023-02-17gnu: Add go-gopkg-in-irc-v3....* gnu/packages/irc.scm (go-gopkg-in-irc-v3): New variable. Co-authored-by: ( <paren@disroot.org> Signed-off-by: Christopher Baines <mail@cbaines.net> jgart 2023-01-12gnu: kirc: Update to 0.3.2....* gnu/packages/irc.scm (kirc): Update to 0.3.2. Signed-off-by: 宋文武 <iyzsong@member.fsf.org> jgart 2023-01-12gnu: litterbox: Update to 1.9....* gnu/packages/irc.scm (litterbox): Update to 1.9. Signed-off-by: 宋文武 <iyzsong@member.fsf.org> jgart 2023-01-12gnu: catgirl: Update to 2.1....* gnu/packages/irc.scm (catgirl): Update to 2.1. Signed-off-by: 宋文武 <iyzsong@member.fsf.org> jgart 2023-01-12gnu: weechat: Update to 3.8....* gnu/packages/irc.scm (weechat): Update to 3.8. [arguments]: Do not build tests any more: since version 3.8, ‘make test’ is successful when tests are not built. [native-inputs]: Remove dependency on cpputest as tests are not built any more. Signed-off-by: 宋文武 <iyzsong@member.fsf.org> Sébastien Helleu