<string.h>: Fix vkernel build.
authorSascha Wildner <saw@online.de>
Tue, 24 Nov 2015 10:06:26 +0000 (11:06 +0100)
committerSascha Wildner <saw@online.de>
Tue, 24 Nov 2015 10:06:26 +0000 (11:06 +0100)
include/string.h

index b16c90d..b97f288 100644 (file)
@@ -114,8 +114,10 @@ char       *strncpy(char * __restrict, const char * __restrict, size_t);
 #endif
 #if __POSIX_VISIBLE >= 200809
 char   *strndup(const char *, size_t);
+#if !defined(_KERNEL_VIRTUAL)
 size_t  strnlen(const char *, size_t) __pure;
 #endif
+#endif
 #if __BSD_VISIBLE
 char   *strnstr(const char *, const char *, size_t) __pure;
 #endif