diff options
author | pawel <pawel@FreeBSD.org> | 2011-11-02 02:28:33 +0800 |
---|---|---|
committer | pawel <pawel@FreeBSD.org> | 2011-11-02 02:28:33 +0800 |
commit | 6ca866b112253a0c5e21f3934caed868e7335f26 (patch) | |
tree | 98bed83511b01b45c8143ba4e275e94eadba5942 | |
parent | ea3b5e0ef8da67c3f50cd612f518a919a9f6bab1 (diff) | |
download | freebsd-ports-gnome-6ca866b112253a0c5e21f3934caed868e7335f26.tar.gz freebsd-ports-gnome-6ca866b112253a0c5e21f3934caed868e7335f26.tar.zst freebsd-ports-gnome-6ca866b112253a0c5e21f3934caed868e7335f26.zip |
Fix build with clang
PR: ports/161117
Submitted by: Klaus Aehlig <aehlig@linta.de>
Approved by: maintainer timeout (4 weeks)
-rw-r--r-- | games/sl/files/patch-sl.c | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/games/sl/files/patch-sl.c b/games/sl/files/patch-sl.c new file mode 100644 index 000000000000..a995219bf969 --- /dev/null +++ b/games/sl/files/patch-sl.c @@ -0,0 +1,59 @@ +--- sl.c.orig 1998-07-22 16:01:01.000000000 +0200 ++++ sl.c 2011-11-01 18:53:45.000000000 +0100 +@@ -32,6 +32,11 @@ + #include <unistd.h> + #include "sl.h" + ++void add_man(int, int); ++int add_D51(int); ++int add_sl(int); ++void add_smoke(int,int); ++ + int ACCIDENT = 0; + int LOGO = 0; + int FLY = 0; +@@ -59,7 +64,7 @@ + } + } + +-void main(int argc, char *argv[]) ++int main(int argc, char *argv[]) + { + int x, i; + +@@ -85,6 +90,8 @@ + } + mvcur(0, COLS - 1, LINES - 1, 0); + endwin(); ++ ++ return 0; + } + + +@@ -129,7 +136,7 @@ + } + + +-add_D51(int x) ++int add_D51(int x) + { + static char *d51[D51PATTERNS][D51HIGHT + 1] + = {{D51STR1, D51STR2, D51STR3, D51STR4, D51STR5, D51STR6, D51STR7, +@@ -170,7 +177,7 @@ + } + + +-int add_man(int y, int x) ++void add_man(int y, int x) + { + static char *man[2][2] = {{"", "(O)"}, {"Help!", "\\O/"}}; + int i; +@@ -181,7 +188,7 @@ + } + + +-int add_smoke(int y, int x) ++void add_smoke(int y, int x) + #define SMOKEPTNS 16 + { + static struct smokes { |