/[gentoo-x86]/gnome-extra/evolution-data-server/files/evolution-data-server-2.21.90-icaltz-util.patch
Gentoo

Contents of /gnome-extra/evolution-data-server/files/evolution-data-server-2.21.90-icaltz-util.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Mon Mar 24 22:47:57 2008 UTC (6 years, 4 months ago) by eva
Branch: MAIN
New version for GNOME-2.22. Litterally tons of bug fixes and uses libsoup-2.4.
(Portage version: 2.1.4.4)

1 diff --exclude-from=/home/dang/.scripts/diffrc -up -ruN evolution-data-server-2.21.90.orig/calendar/libical/src/libical/icaltz-util.c evolution-data-server-2.21.90/calendar/libical/src/libical/icaltz-util.c
2 --- evolution-data-server-2.21.90.orig/calendar/libical/src/libical/icaltz-util.c 2008-01-23 06:16:42.000000000 -0500
3 +++ evolution-data-server-2.21.90/calendar/libical/src/libical/icaltz-util.c 2008-01-30 18:27:13.000000000 -0500
4 @@ -23,16 +23,16 @@
5 #include <string.h>
6 #if defined(sun) && defined(__SVR4)
7 #include <sys/byteorder.h>
8 -#else
9 -#ifdef _WIN32
10 +#elif defined(_WIN32)
11 #define BIG_ENDIAN 'B'
12 #define LITTLE_ENDIAN 'l'
13 #define BYTE_ORDER LITTLE_ENDIAN
14 #define bswap_32(val) ((((val) & 0x000000ffU) << 24) | (((val) & 0x0000ff00U) << 8) | (((val) & 0x00ff0000U) >> 8) | (((val) & 0xff000000U) >> 24))
15 -#else
16 +#elif defined(__linux__)
17 #include <byteswap.h>
18 #include <endian.h>
19 -#endif
20 +#else
21 +#include <sys/endian.h>
22 #endif
23 #include <limits.h>
24 #include <time.h>
25 @@ -96,7 +96,11 @@ decode (const void *ptr)
26 if ((BYTE_ORDER == BIG_ENDIAN) && sizeof (int) == 4)
27 return *(const int *) ptr;
28 else if (BYTE_ORDER == LITTLE_ENDIAN && sizeof (int) == 4)
29 +#ifdef __linux__
30 return bswap_32 (*(const int *) ptr);
31 +#else
32 + return bswap32 (*(const uint32_t *) ptr);
33 +#endif
34 #endif
35 else
36 {

  ViewVC Help
Powered by ViewVC 1.1.20