summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoy Marples <uberlord@gentoo.org>2007-10-19 10:57:11 +0000
committerRoy Marples <uberlord@gentoo.org>2007-10-19 10:57:11 +0000
commit40a9641c3a6fd8268d923148f9aaf809d2a7247f (patch)
treea142be43864929fe8427b93e132fe63d47b0ec05 /gnome-extra/evolution-data-server/files
parentAdded a pause at the end of pkg_setup. (diff)
downloadhistorical-40a9641c3a6fd8268d923148f9aaf809d2a7247f.tar.gz
historical-40a9641c3a6fd8268d923148f9aaf809d2a7247f.tar.bz2
historical-40a9641c3a6fd8268d923148f9aaf809d2a7247f.zip
bswap_32 is linux only, BSD's use bswap32
Package-Manager: portage-2.1.3.15
Diffstat (limited to 'gnome-extra/evolution-data-server/files')
-rw-r--r--gnome-extra/evolution-data-server/files/evolution-data-server-1.12.1-icaltz-util.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/gnome-extra/evolution-data-server/files/evolution-data-server-1.12.1-icaltz-util.patch b/gnome-extra/evolution-data-server/files/evolution-data-server-1.12.1-icaltz-util.patch
new file mode 100644
index 000000000000..982291b274aa
--- /dev/null
+++ b/gnome-extra/evolution-data-server/files/evolution-data-server-1.12.1-icaltz-util.patch
@@ -0,0 +1,28 @@
+diff -ur a/calendar/libical/src/libical/icaltz-util.c b/calendar/libical/src/libical/icaltz-util.c
+--- a/calendar/libical/src/libical/icaltz-util.c 2007-10-12 07:31:10 +0100
++++ b/calendar/libical/src/libical/icaltz-util.c 2007-10-19 11:34:38 +0100
+@@ -23,9 +23,11 @@
+ #include <string.h>
+ #if defined(sun) && defined(__SVR4)
+ #include <sys/byteorder.h>
+-#else
++#elif defined(__linux__)
+ #include <byteswap.h>
+ #include <endian.h>
++#else
++#include <sys/endian.h>
+ #endif
+ #include <limits.h>
+ #include <time.h>
+@@ -89,7 +91,11 @@
+ if ((BYTE_ORDER == BIG_ENDIAN) && sizeof (int) == 4)
+ return *(const int *) ptr;
+ else if (BYTE_ORDER == LITTLE_ENDIAN && sizeof (int) == 4)
++#ifdef __linux__
+ return bswap_32 (*(const int *) ptr);
++#else
++ return bswap32 (*(const uint32_t *) ptr);
++#endif
+ #endif
+ else
+ {