diff --git a/src/lib/libc/string/strnlen.c b/src/lib/libc/string/strnlen.c index 2dc7b4fb..a5e13ae0 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 @@ -18,7 +18,11 @@ #include +#if !defined(_KERNEL) && !defined(_STANDALONE) #include +#else +#include +#endif size_t strnlen(const char *str, size_t maxlen)