Follow-up Comment #6, bug #50223 (project wget): Including unistd.h before wget.h (provided that "config.h" is included before <unistd.h>) does fix the issue. However, I uncovered two more bugs while testing this fix.
First, in src/xattr.h, the fsetxattr macro is declared with a space between the macro name and the argument list parenthesis, which is apparently wrong. Trivial to fix. Secondly, for some reason, lib/uniwidth/width.c isn't added to the source list, leading to undefined symbol error for uc_width. Since autotools make my head spin... I just uncommented the "if LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH" conditional guarding "libgnu_a_SOURCES += uniwidth/width.c" in lib/Makefile.am, and the build proceeded to a success. Apparently this is not a proper fix, but at least it tells us how many bugs there are in total... I have attached my "sketchy patch", if you just want to get your hands on a copy of wget 1.19 on macOS as soon as possible and don't care for proper fixes. _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?50223> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/