/usr/include/rpc/types.h
/usr/include/errno.h
/usr/include/sys/un.h
/usr/include/rpc/types.h
copy this file to gcc-lib/include/rpc/types.h
and change the declaration of malloc() to
#if !defined(__cplusplus) extern char *malloc(); #endif
Note that this is only necessary if you want to build Fresco
/usr/include/rpc/types.h
/usr/include/errno.h
/usr/include/sys/un.h