Changeset 45345


Ignore:
Timestamp:
Jan 14, 2009, 3:29:01 AM (11 years ago)
Author:
blb@…
Message:

gnome/evolution-data-server - fix compile issue on Intel-based Macs
(ticket #17988)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/gnome/evolution-data-server/files/patch-calendar-libical-src-libical-icaltz-util.c.diff

    r45338 r45345  
    1 --- calendar/libical/src/libical/icaltz-util.c.orig     2008-12-22 01:49:23.000000000 -0800
    2 +++ calendar/libical/src/libical/icaltz-util.c  2009-01-13 12:26:17.000000000 -0800
     1--- calendar/libical/src/libical/icaltz-util.c.orig     2008-12-22 02:49:23.000000000 -0700
     2+++ calendar/libical/src/libical/icaltz-util.c  2009-01-13 20:09:57.000000000 -0700
    33@@ -32,7 +32,8 @@
    44 #include <byteswap.h>
     
    66 #else
    77-#include <sys/endian.h>
    8 +#define bswap_32(val) ((((val) & 0x000000ffU) << 24) | (((val) & 0x0000ff00U) <<  8) | (((val) & 0x00ff0000U) >>  8) | (((val) & 0xff000000U) >> 24))
    9 +#include <machine/endian.h>
     8+#define bswap32(val) ((((val) & 0x000000ffU) << 24) | (((val) & 0x0000ff00U) <<  8) | (((val) & 0x00ff0000U) >>  8) | (((val) & 0xff000000U) >> 24))
     9+#include <sys/types.h>
    1010 #endif
    1111 #include <limits.h>
    1212 #include <time.h>
     13@@ -99,7 +100,7 @@
     14 #ifdef __linux__
     15         return bswap_32 (*(const int *) ptr);
     16 #else
     17-         return bswap32 (*(const uint32_t *) ptr);
     18+         return bswap32 (*(const u_int32_t *) ptr);
     19 #endif
     20 #endif
     21        else
Note: See TracChangeset for help on using the changeset viewer.