Unbreak the build on pointyhat: Including getopt.h clashes with unistd.h In file included from main.cc:31: /usr/local/include/getopt.h:115: error: declaration of C function `int getopt()' conflicts with /usr/include/unistd.h:112: error: previous declaration `int getopt(int, char* const*, const char*)' here Define HAVE_DECL_GETOPT to make this work. I wonder how any port can use getopt.h on 4.x without that define. Generated with FreeBSD Port Tools 0.63
State Changed From-To: open->feedback On 4.11: g++34 -O2 -pipe -g -c main.cc In file included from main.cc:31: /usr/local/include/getopt.h:115: error: declaration of C function `int getopt()' conflicts with /usr/include/unistd.h:112: error: previous declaration `int getopt(int, char* const*, const char*)' here *** Error code 1 - Your patch to the Makefile is based on v1.4 while the CVS-version is already at 1.5 - Do you mind if I remove pkg-plist in favour of PORTDOCS and PLIST_FILES once we get this sorted out?
Responsible Changed From-To: freebsd-ports-bugs->vs I'll track this.
Whoops, please disregard the error, all my fault, it builds fine. -- vs
State Changed From-To: feedback->closed Committed, thanks!