On Sun, Oct 14, 2007 at 05:41:06PM +0200, Bruno Haible wrote: > Colin Watson wrote: > > I'm in the process of making my man-db package use Gnulib. Upon > > importing the xgetcwd module and using it > > Have you done a "make distclean" and reconfigured after doing this?
Yes. > > Isn't this bound to break with HAVE_PARTLY_WORKING_GETCWD && !LIBC? The > > function definition preprocesses to char *getcwd. > > The expected behaviour is that __getwcd expands to getcwd which in turns > expands to rpl_getcwd. If getcwd does not expand to rpl_getcwd, you need > to find out why. Look at the value of REPLACE_GETCWD in your config.status > and at the differences between lib/unistd.in.h (or lib/unistd_.h) and > lib/unistd.h. REPLACE_GETCWD is 1 and unistd.h is up to date. However, getcwd.c includes <unistd.h>. Should this not be "unistd.h", in order to use the version from Gnulib in the current directory? (I'm writing this mail in a brief interval between coming home and going out again, but I can try this out later if nobody beats me to it.) Thanks, -- Colin Watson [EMAIL PROTECTED]