to compile some apps with diet, I had to add this: /* from stdio.h */ #define __FILE FILE /* from sys/cdefs.h */ # define __BEGIN_NAMESPACE_STD # define __END_NAMESPACE_STD # define __USING_NAMESPACE_STD(name) # define __BEGIN_NAMESPACE_C99 # define __END_NAMESPACE_C99 # define __USING_NAMESPACE_C99(name) # define __attribute_pure__ __attribute__ ((__pure__)) /* from bits/types.h */ typedef char *caddr_t; typedef unsigned char uchar; typedef unsigned char u_char; typedef unsigned short ushort; maybe this should be part of the dietlibc headers..
ISTR that these are GNU extensions. Felix is fairly against adding GNU extensions in general, preferring that people use the real types.
well, then try to compile e.g. sed without those defines...