diff options
author | John Marino <marino@FreeBSD.org> | 2013-10-01 20:04:02 +0000 |
---|---|---|
committer | John Marino <marino@FreeBSD.org> | 2013-10-01 20:04:02 +0000 |
commit | 3305c2f2e75a36ea0a4d21798609f2261e777dcc (patch) | |
tree | 0eb043fa8bad0eeb6e78731d6b1f05be06aaef8d | |
parent | 4c10c9f84578ae7349ee1524f750925e2b7f23b7 (diff) | |
download | ports-3305c2f2e75a36ea0a4d21798609f2261e777dcc.tar.gz ports-3305c2f2e75a36ea0a4d21798609f2261e777dcc.zip |
games/warmux: add <unistd.h> for modern compilers
The DEBUG option, which is now default, sets the -Werror flag that was
removed with a sed replace command for some makefiles. Newer compilers
will pick up set-but-unused errors so -Werror really has to be disabled
everywhere on newer compilers.
Approved by: portmgr (bapt, implicit)
Notes
Notes:
svn path=/head/; revision=328988
-rw-r--r-- | games/warmux/Makefile | 2 | ||||
-rw-r--r-- | games/warmux/files/patch-src_main.cpp | 10 | ||||
-rw-r--r-- | games/warmux/files/patch-tools_list__games_main.cpp | 8 |
3 files changed, 19 insertions, 1 deletions
diff --git a/games/warmux/Makefile b/games/warmux/Makefile index bc8c2e01cd0f..6faeff391f3f 100644 --- a/games/warmux/Makefile +++ b/games/warmux/Makefile @@ -36,7 +36,7 @@ NO_STAGE= yes post-patch: ${REINPLACE_CMD} -e "s,-Werror,," ${WRKSRC}/Makefile.in \ - ${WRKSRC}/src/Makefile.in + ${WRKSRC}/src/Makefile.in ${WRKSRC}/configure ${REINPLACE_CMD} -e "s,warmux_files.desktop,," ${WRKSRC}/data/Makefile.in ${FIND} -d ${WRKSRC}/data/ -name "*.*~" -delete diff --git a/games/warmux/files/patch-src_main.cpp b/games/warmux/files/patch-src_main.cpp new file mode 100644 index 000000000000..3356c188addc --- /dev/null +++ b/games/warmux/files/patch-src_main.cpp @@ -0,0 +1,10 @@ +--- src/main.cpp.orig 2011-04-28 19:03:06.000000000 +0000 ++++ src/main.cpp +@@ -21,6 +21,7 @@ + + #include <WARMUX_singleton.h> + #include <getopt.h> ++#include <unistd.h> + #ifndef WIN32 + # include <signal.h> + #endif diff --git a/games/warmux/files/patch-tools_list__games_main.cpp b/games/warmux/files/patch-tools_list__games_main.cpp new file mode 100644 index 000000000000..eb3696fee25e --- /dev/null +++ b/games/warmux/files/patch-tools_list__games_main.cpp @@ -0,0 +1,8 @@ +--- tools/list_games/main.cpp.orig 2011-04-28 19:03:12.000000000 +0000 ++++ tools/list_games/main.cpp +@@ -1,4 +1,5 @@ + #include <stdio.h> ++#include <unistd.h> + #include <WARMUX_types.h> + #include <WARMUX_network.h> + #include <WARMUX_index_server.h> |