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 <string.h> (the WinCE one) here, as that pulls in a lot of unrelated stuff, e.g. defines for limits that collide with machine/limits.h
This commit is contained in:
parent
834c0a7840
commit
4a0ed35f45
|
@ -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 <sys/types.h>
|
||||
|
||||
size_t strlen(const char *string);
|
||||
|
||||
#endif /* !_LIB_LIBKERN_LIBKERN_H_ */
|
Loading…
Reference in New Issue