]> git.pld-linux.org Git - packages/ftp4all.git/blob - ftpd-endian.patch
- added using %%{rpmcflags} macro.
[packages/ftp4all.git] / ftpd-endian.patch
1 diff -urN ftpd-3.012.org/lib/des-private.h ftpd-3.012/lib/des-private.h
2 --- ftpd-3.012.org/lib/des-private.h    Tue Dec 19 20:15:12 2000
3 +++ ftpd-3.012/lib/des-private.h        Tue Dec 19 20:17:36 2000
4 @@ -2,30 +2,13 @@
5  #define DES_PRIVATE 1
6  
7  #include "des.h"
8 +#include <endian.h>
9  
10  #if (!BIG_ENDIAN && !LITTLE_ENDIAN)
11 -#ifdef __alpha
12 -#define LITTLE_ENDIAN 1
13 -#endif
14 -#ifdef i386
15 -#define LITTLE_ENDIAN 1
16 -#endif
17 -#ifdef sun386
18 -#define LITTLE_ENDIAN 1
19 -#endif
20 -#ifdef THINK_C                 /* THINK C compiler for Mac */
21 -#define BIG_ENDIAN 1
22 -#endif
23 -#ifdef mc68000
24 -#define BIG_ENDIAN 1
25 -#endif
26 -#ifdef sparc
27 -#define BIG_ENDIAN 1
28 -#endif
29 -#ifdef _IBMR2
30 +#if __BYTE_ORDER == __BIG_ENDIAN
31  #define BIG_ENDIAN 1
32  #endif
33 -#if defined(vax) || (defined(ultrix) && defined(mips))
34 +#if __BYTE_ORDER == __LITTLE_ENDIAN
35  #define LITTLE_ENDIAN 1
36  #endif
37  #endif
This page took 0.053802 seconds and 3 git commands to generate.