X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=src%2Fcontext.c;h=727388bcca095f9e521903ac5810bba2eddbd6bb;hp=5a5332c30e5325de225657c578a2f9d2bfce5514;hb=3137da963d298c73ce3bc858874fdfc87fa941b7;hpb=f18f62c084371e0da16305db4de27bfa124934c1 diff --git a/src/context.c b/src/context.c index 5a5332c..727388b 100644 --- a/src/context.c +++ b/src/context.c @@ -44,12 +44,33 @@ #ifdef HAVE_GLOB_H # include #endif +#ifdef HAVE_NETINET_IN_H +# include +#endif +#ifdef HAVE_ARPA_NAMESER_H +# include +#endif +#ifdef HAVE_NETDB_H +# include +#endif +#ifdef HAVE_RESOLV_H +# include +#endif +#ifdef HAVE_SYS_SELECT_H +# include +#endif +#ifdef HAVE_SYS_SOCKET_H +# include +#endif #ifdef HAVE_SYS_TIME_H # include #endif #ifdef HAVE_SYS_TIMES_H # include #endif +#ifdef HAVE_SYS_UIO_H +# include +#endif #ifdef HAVE_SYS_UTSNAME_H # include #endif @@ -229,8 +250,8 @@ static inline int validate_constant(PSI_Data *data, constant *c) { static inline int validate_decl_arg(PSI_Data *data, decl_arg *arg) { if (!validate_decl_type(data, arg->type)) { - data->error(PSI_WARNING, "Cannot use '%s' as type for '%s'", - arg->type->name, arg->var->name); + data->error(PSI_WARNING, "Cannot use '%s'(%d) as type for '%s'", + arg->type->name, arg->type->type, arg->var->name); return 0; } return 1;