source: branches/2.3.7/fon/samba3/patches/280-big-endian-fix.patch @ 2345

Last change on this file since 2345 was 2345, checked in by matthijs, 6 years ago

Backport r2344: samba3: Really properly set endianness

In r2342, a patch was added to tell Samba about the big-endianness of
2.0g. However, it used some constants defined by libc, without including
the proper header file. Because both of them were undefined, the #if
that compared them would always be true, causing samba to always think
the system was big endian (which broken 2.0n again...).

This adds the proper include so both big and little endian now work.

References: #1325

File size: 609 bytes
  • source/include/config.h

    Make sure that Samba knows if our platform is big endian.
    a b  
     1#include <endian.h>
    13/* include/config.h.  Generated by configure.  */
    24/* include/  Generated from by autoheader.  */
    19861988/* Define to 1 if your processor stores words with the most significant byte
    19871989   first (like Motorola and SPARC, unlike Intel and VAX). */
    1988 /* #undef WORDS_BIGENDIAN */
     1990#if __BYTE_ORDER == __BIG_ENDIAN
     1991#define WORDS_BIGENDIAN 1
    19901994/* Required alignment */
    19911995/* #undef _ALIGNMENT_REQUIRED */
Note: See TracBrowser for help on using the repository browser.