Changeset 118156


Ignore:
Timestamp:
Mar 24, 2014, 12:21:29 AM (7 years ago)
Author:
devans@…
Message:

GNOME-3/unstable: gnome-keyring, build fix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • users/devans/GNOME-3/unstable/dports/gnome/gnome-keyring/files/patch-egg-egg-armor.c.diff

    r118054 r118156  
     1--- egg/egg-armor.c.orig        2014-03-23 05:37:50.000000000 -0700
     2+++ egg/egg-armor.c     2014-03-23 16:24:23.000000000 -0700
     3@@ -59,6 +59,27 @@
     4 #define ARMOR_PREF_END      "-----END "
     5 #define ARMOR_PREF_END_L    9
     6 
     7+#ifdef __APPLE__
     8+/*
     9+ * Reverse memchr()
     10+ * Find the last occurrence of 'c' in the buffer 's' of size 'n'.
     11+ */
     12+static void *
     13+memrchr(const void *s, int c, size_t n)
     14+{
     15+        const unsigned char *cp;
     16+
     17+        if (n != 0) {
     18+                cp = (const unsigned char *)s + n;
     19+                do {
     20+                        if (*(--cp) == (unsigned char)c)
     21+                                return((void *)cp);
     22+                } while (--n != 0);
     23+        }
     24+        return(NULL);
     25+}
     26+#endif
     27+
     28 static void
     29 parse_header_lines (const gchar *hbeg,
     30                     const gchar *hend,
Note: See TracChangeset for help on using the changeset viewer.