Commits

Jeremy Huddleston Sequoia authored 6fb1dcca402
cctools: Build fix for Snow Leopard

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@113162 d073be05-634f-4543-b044-5fe20cf6d1d6
No tags

devel/cctools/files/snowleopard-strnlen.patch

Added
1 +--- otool/ofile_print.c.orig 2013-11-10 22:33:14.000000000 -0800
2 ++++ otool/ofile_print.c 2013-11-10 22:34:19.000000000 -0800
3 +@@ -225,6 +225,18 @@
4 + #include "stuff/guess_short_name.h"
5 + #include "ofile_print.h"
6 +
7 ++static size_t
8 ++strnlen(const char *s, size_t maxlen)
9 ++{
10 ++ size_t len;
11 ++
12 ++ for (len = 0; len < maxlen; len++, s++) {
13 ++ if (!*s)
14 ++ break;
15 ++ }
16 ++ return (len);
17 ++}
18 ++
19 + /* <mach/loader.h> */
20 + /* The maximum section alignment allowed to be specified, as a power of two */
21 + #define MAXSECTALIGN 15 /* 2**15 or 0x8000 */

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut