> Date: Sun, 21 Apr 2013 15:02:49 +0200 (CEST) > From: Stefan Fritsch <s...@sfritsch.de> > > Moved ptrdiff_t definition to types.h with proper guards. Assume > ptrdiff_t is long in subr_prf.c > > OK?
No. > --- a/sys/sys/types.h > +++ b/sys/sys/types.h > @@ -177,6 +177,11 @@ typedef __clockid_t clockid_t; > typedef __size_t size_t; > #endif > > +#ifndef _PTRDIFF_T_DEFINED_ > +#define _PTRDIFF_T_DEFINED_ > +typedef __ptrdiff_t ptrdiff_t; > +#endif You can't put ptrdiff_t in <sys/types.h> either. I lost track a bit what you're trying to achieve here (been a tad bit busy). But I don't think we'd want to use ptrdiff_t in the kernel.