From 4a0ed35f45bc0a95683cee95422cf250c0661e09 Mon Sep 17 00:00:00 2001 From: uwe Date: Wed, 18 Oct 2006 01:39:01 +0000 Subject: [PATCH] The real libkern.h now uses "long long" that eVC has no clue about. Instead of polluting libkern.h with ifdefs introduce our own private copy. Since AFAICT we only need it for libsa/ufs.c which only includes it for the strlen() prototype, trim it to provide just that for now. We cannot just #include (the WinCE one) here, as that pulls in a lot of unrelated stuff, e.g. defines for limits that collide with machine/limits.h --- sys/arch/hpc/stand/include/lib/libkern/libkern.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 sys/arch/hpc/stand/include/lib/libkern/libkern.h diff --git a/sys/arch/hpc/stand/include/lib/libkern/libkern.h b/sys/arch/hpc/stand/include/lib/libkern/libkern.h new file mode 100644 index 000000000000..5bb2dd7b67b7 --- /dev/null +++ b/sys/arch/hpc/stand/include/lib/libkern/libkern.h @@ -0,0 +1,13 @@ +/* $NetBSD: libkern.h,v 1.1 2006/10/18 01:39:01 uwe Exp $ */ + +/* + * Fake libkern.h for the few files we borrow from sys/lib/libsa + */ +#ifndef _LIB_LIBKERN_LIBKERN_H_ +#define _LIB_LIBKERN_LIBKERN_H_ + +#include + +size_t strlen(const char *string); + +#endif /* !_LIB_LIBKERN_LIBKERN_H_ */