Ticket #9913: xmail-fix_endianness_detection.patch

File xmail-fix_endianness_detection.patch, 903 bytes (added by НКВД, 5 years ago)

Patch to fix the endianness detection issues of xmail package

  • feeds/packages/mail/xmail/patches/030-sysmachine.patch

     
    11diff -urN xmail-1.25.orig/SysMachine.h xmail-1.25/SysMachine.h 
    22--- xmail-1.25.orig/SysMachine.h        1970-01-01 01:00:00.000000000 +0100 
    33+++ xmail-1.25/SysMachine.h     2008-07-28 10:16:47.000000000 +0200 
    4 @@ -0,0 +1,24 @@ 
     4@@ -0,0 +1,30 @@ 
    55+#ifndef _MACHDEFS_H 
    66+#define _MACHDEFS_H 
    77+ 
    88+ 
     9+#include <endian.h> 
     10+ 
     11+#if __BYTE_ORDER == __LITTLE_ENDIAN 
    912+#undef MACH_BIG_ENDIAN_WORDS 
    10 + 
    1113+#undef MACH_BIG_ENDIAN_BITFIELD 
     14+#elif __BYTE_ORDER == __BIG_ENDIAN 
     15+#define MACH_BIG_ENDIAN_WORDS 
     16+#define MACH_BIG_ENDIAN_BITFIELD 
     17+#endif 
    1218+ 
    1319+typedef signed char MachInt8; 
    1420+typedef unsigned char MachUInt8;