Eric Blake wrote: > +static int (*check) (char const *, int, char const *) = symlinkat; > + > #include <fcntl.h> > #include <errno.h> > #include <stdbool.h> > > in order to validate that a function is correctly declared when the user > includes just the one header named in the standards. We can then fix the > fallout by making the *.in.h headers pull in the necessary pre-requisites for > functions that declared in the wrong system header. Any objections?
Good idea. You might want to use a name less likely than "check" to impinge on the name space of the test program.