diff options
Diffstat (limited to 'games/warzone2100')
-rw-r--r-- | games/warzone2100/Makefile | 1 | ||||
-rw-r--r-- | games/warzone2100/files/patch-src_loadsave.c | 22 | ||||
-rw-r--r-- | games/warzone2100/files/warzone.in | 2 |
3 files changed, 24 insertions, 1 deletions
diff --git a/games/warzone2100/Makefile b/games/warzone2100/Makefile index 4103f01a9c1f..ff544144ce9a 100644 --- a/games/warzone2100/Makefile +++ b/games/warzone2100/Makefile @@ -7,6 +7,7 @@ PORTNAME= warzone2100 PORTVERSION= 0.2.2 +PORTREVISON= 1 CATEGORIES= games MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} diff --git a/games/warzone2100/files/patch-src_loadsave.c b/games/warzone2100/files/patch-src_loadsave.c new file mode 100644 index 000000000000..0c5689603604 --- /dev/null +++ b/games/warzone2100/files/patch-src_loadsave.c @@ -0,0 +1,22 @@ +--- src/loadsave.c.orig Wed Jul 27 13:33:56 2005 ++++ src/loadsave.c Thu Sep 22 15:40:54 2005 +@@ -341,7 +341,8 @@ + } + } + } +- closedir(d); ++ if (d) ++ closedir(d); + } + #endif + bLoadSaveUp = TRUE; +@@ -444,7 +445,8 @@ + DeleteFile(entry->d_name); + } + +- closedir(d); ++ if (d) ++ closedir(d); + } + #endif + diff --git a/games/warzone2100/files/warzone.in b/games/warzone2100/files/warzone.in index c8dd49cba4bb..b314ea511809 100644 --- a/games/warzone2100/files/warzone.in +++ b/games/warzone2100/files/warzone.in @@ -4,4 +4,4 @@ cd %%DATADIR%% || exit 1 -exec %%PREFIX%%/libexec/warzone +exec %%PREFIX%%/libexec/warzone "$@" |