Kevin Ryde wrote: > Claes Wallin writes: >> On Mac OS X 10.4 dirfd is a macro, not a function. > > Thanks. Is that true on solaris too? I'm guessing it is. No, it's undefined. That's why the kludge in filesys.c exists. >> Replace AC_CHECK_FUNCS([dirfd]) with gl_FUNC_DIRFD. > > I think I'll make the test "#ifndef dirfd" instead. > Is gl_FUNC_DIRFD an actual documented function? It's a part of gnulib, defined in dirfd.m4, which I included. A more generic kludge than ours, because it works on both Mac OS X and Solaris. /c