Changeset 2344


Ignore:
Timestamp:
Oct 15, 2013, 12:00:18 PM (5 years ago)
Author:
matthijs
Message:

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:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/fon/samba3/patches/280-big-endian-fix.patch

    r2342 r2344  
    33--- a/source/include/config.h
    44+++ b/source/include/config.h
    5 @@ -1985,7 +1985,9 @@
     5@@ -1,3 +1,5 @@
     6+#include <endian.h>
     7+
     8 /* include/config.h.  Generated by configure.  */
     9 /* include/config.h.in.  Generated from configure.in by autoheader.  */
     10 
     11@@ -1985,7 +1987,9 @@
    612 
    713 /* Define to 1 if your processor stores words with the most significant byte
Note: See TracChangeset for help on using the changeset viewer.