Follow-up Comment #3, bug #50223 (project wget):

Thanks for the additional info.
It looks like unlink() doesn't work as expected on MacOSX, so that gnulib add
wrapper code, doing it in <unistd.h> with

#define unlink rpl_unlink

Now, in ftp.c we include "wget.h" before <unistd.h>.
"wget.h" includes "options.h" which declares 'struct options' with a member
called 'unlink'. Thereafter <unistd.h> makes the above define and thus all
references to member 'unlink' are rewritten to 'rpl_unlink' by the
preprocessor => syntax error.

Could anyone test to include unistd.h before wget.h in ftp.c ?
Maybe other sources are affected similarly... but it would be good to know if
ftp.c compiles with such a change.

I guess the best fix would be to rename member 'unlink' to somethink else,
e.g. 'do_unlink'.


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?50223>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/


Reply via email to