--- otool/ofile_print.c.orig
+++ otool/ofile_print.c
@@ -227,6 +227,18 @@
 #include "dyld_bind_info.h"
 #include "ofile_print.h"
 
+static size_t
+strnlen(const char *s, size_t maxlen)
+{
+	size_t len;
+
+	for (len = 0; len < maxlen; len++, s++) {
+		if (!*s)
+			break;
+	}
+	return (len);
+}
+
 /* <mach/loader.h> */
 /* The maximum section alignment allowed to be specified, as a power of two */
 #define MAXSECTALIGN		15 /* 2**15 or 0x8000 */