This patch is borrowed from Debian's patches for plink Author: Peter Green Puropose: Fallback to endian.h if all else fails on 64bit machines Closes: #528659 Forwarded: Shaun Purcell 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 + #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 */ kages/bison.scm?id=c872b952c527cb42766654d12059d5ea5224ca6c'>commitdiff
AgeCommit message (Collapse)Author
2018-08-25gnu: Remove bison@2.7.Marius Bakke
* gnu/packages/bison.scm (bison-2.7): Remove variable.
2018-06-12gnu: bison: Update to 3.0.5.Tobias Geerinckx-Rice
* gnu/packages/bison.scm (bison): Update to 3.0.5.
2017-03-30gnu: Use HTTPS for almost all gnu.org HOME-PAGEs.Tobias Geerinckx-Rice
All HTTP gnu.org (and supported subdomain) HOME-PAGEs changed to HTTPS.
2016-07-29gnu: Use define-public to export packages.David Craven
* gnu/packages/bison.scm (bison): Define public. * gnu/packages/flex.scm (flex): Define public. * gnu/packages/pulseaudio.scm (libsndfile, libsamplerate, pulseaudio): Define public. * gnu/packages/sdl.scm (sdl, sdl2, libmikmod, sdl-gfx, sdl-image, sdl-mixer, sdl-net, sdl-ttf): Define public. * gnu/packages/search.scm (xapian): Remove unnecessary #:export. * gnu/packages/swig.scm (swig): Define public. Signed-off-by: Ludovic Courtès <ludo@gnu.org>