[118156] users/devans/GNOME-3/unstable/dports/gnome/gnome-keyring/files/ patch-egg-egg-armor.c.diff
devans at macports.org
devans at macports.org
Sun Mar 23 17:21:29 PDT 2014
Revision: 118156
https://trac.macports.org/changeset/118156
Author: devans at macports.org
Date: 2014-03-23 17:21:29 -0700 (Sun, 23 Mar 2014)
Log Message:
-----------
GNOME-3/unstable: gnome-keyring, build fix.
Modified Paths:
--------------
users/devans/GNOME-3/unstable/dports/gnome/gnome-keyring/files/patch-egg-egg-armor.c.diff
Modified: users/devans/GNOME-3/unstable/dports/gnome/gnome-keyring/files/patch-egg-egg-armor.c.diff
===================================================================
--- users/devans/GNOME-3/unstable/dports/gnome/gnome-keyring/files/patch-egg-egg-armor.c.diff 2014-03-23 22:58:46 UTC (rev 118155)
+++ users/devans/GNOME-3/unstable/dports/gnome/gnome-keyring/files/patch-egg-egg-armor.c.diff 2014-03-24 00:21:29 UTC (rev 118156)
@@ -0,0 +1,30 @@
+--- egg/egg-armor.c.orig 2014-03-23 05:37:50.000000000 -0700
++++ egg/egg-armor.c 2014-03-23 16:24:23.000000000 -0700
+@@ -59,6 +59,27 @@
+ #define ARMOR_PREF_END "-----END "
+ #define ARMOR_PREF_END_L 9
+
++#ifdef __APPLE__
++/*
++ * Reverse memchr()
++ * Find the last occurrence of 'c' in the buffer 's' of size 'n'.
++ */
++static void *
++memrchr(const void *s, int c, size_t n)
++{
++ const unsigned char *cp;
++
++ if (n != 0) {
++ cp = (const unsigned char *)s + n;
++ do {
++ if (*(--cp) == (unsigned char)c)
++ return((void *)cp);
++ } while (--n != 0);
++ }
++ return(NULL);
++}
++#endif
++
+ static void
+ parse_header_lines (const gchar *hbeg,
+ const gchar *hend,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140323/15495fe7/attachment.html>
More information about the macports-changes
mailing list