From e07859e901fd418fd131e18bfe9b8bce64a0454d Mon Sep 17 00:00:00 2001
From: matthew <>
Date: Thu, 26 Apr 2012 01:22:31 +0000
Subject: Add strnlen() to libkern.

ok deraadt
---
 src/lib/libc/string/strnlen.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

(limited to 'src')

diff --git a/src/lib/libc/string/strnlen.c b/src/lib/libc/string/strnlen.c
index 2dc7b4fb32..a5e13ae04e 100644
--- a/src/lib/libc/string/strnlen.c
+++ b/src/lib/libc/string/strnlen.c
@@ -1,4 +1,4 @@
-/*	$OpenBSD: strnlen.c,v 1.3 2010/06/02 12:58:12 millert Exp $	*/
+/*	$OpenBSD: strnlen.c,v 1.4 2012/04/26 01:22:31 matthew Exp $	*/
 
 /*
  * Copyright (c) 2010 Todd C. Miller <Todd.Miller@courtesan.com>
@@ -18,7 +18,11 @@
 
 #include <sys/types.h>
 
+#if !defined(_KERNEL) && !defined(_STANDALONE)
 #include <string.h>
+#else
+#include <lib/libkern/libkern.h>
+#endif
 
 size_t
 strnlen(const char *str, size_t maxlen)
-- 
cgit v1.2.3-55-g6feb