freebsd-ports/games/warmux/files/patch-src_main.cpp
John Marino 3305c2f2e7 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)
2013-10-01 20:04:02 +00:00

11 lines
213 B
C++

--- 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