mirror of
https://git.freebsd.org/ports.git
synced 2025-05-25 15:36:35 -04:00
Fix build errors seen by recent C++ compilers.
While being here, add LICENSE.
This commit is contained in:
parent
1637d2415f
commit
d8568dba0c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=474239
2 changed files with 28 additions and 2 deletions
|
@ -3,12 +3,14 @@
|
||||||
|
|
||||||
PORTNAME= xmahjongg
|
PORTNAME= xmahjongg
|
||||||
PORTVERSION= 3.7
|
PORTVERSION= 3.7
|
||||||
PORTREVISION= 2
|
PORTREVISION= 3
|
||||||
CATEGORIES= games
|
CATEGORIES= games
|
||||||
MASTER_SITES= http://www.lcdf.org/xmahjongg/
|
MASTER_SITES= http://www.lcdf.org/xmahjongg/
|
||||||
|
|
||||||
MAINTAINER= joerg@FreeBSD.org
|
MAINTAINER= joerg@FreeBSD.org
|
||||||
COMMENT= The Chinese game of Mahjongg for X11
|
COMMENT= Chinese game of Mahjongg for X11
|
||||||
|
|
||||||
|
LICENSE= GPLv2
|
||||||
|
|
||||||
USE_XORG= x11
|
USE_XORG= x11
|
||||||
GNU_CONFIGURE= yes
|
GNU_CONFIGURE= yes
|
||||||
|
|
24
games/xmahjongg/files/patch-lcdf
Normal file
24
games/xmahjongg/files/patch-lcdf
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
--- include/lcdf/vector.hh.orig 2003-11-17 03:21:23 UTC
|
||||||
|
+++ include/lcdf/vector.hh
|
||||||
|
@@ -7,7 +7,7 @@
|
||||||
|
#elif defined(HAVE_NEW_H)
|
||||||
|
# include <new.h>
|
||||||
|
#else
|
||||||
|
-static inline void *operator new(size_t, void *v) { return v; }
|
||||||
|
+inline void *operator new(size_t, void *v) { return v; }
|
||||||
|
#endif
|
||||||
|
|
||||||
|
template <class T>
|
||||||
|
--- liblcdf/permstr.cc.orig 2004-11-21 19:01:59 UTC
|
||||||
|
+++ liblcdf/permstr.cc
|
||||||
|
@@ -111,8 +111,8 @@ static int scatter[] = { /* map c
|
||||||
|
void
|
||||||
|
PermString::initialize(const char* s, int length)
|
||||||
|
{
|
||||||
|
- register unsigned char* m = (unsigned char*) s;
|
||||||
|
- register unsigned char* mm;
|
||||||
|
+ unsigned char* m = (unsigned char*) s;
|
||||||
|
+ unsigned char* mm;
|
||||||
|
|
||||||
|
if (length < 0)
|
||||||
|
length = (s ? strlen(s) : 0);
|
Loading…
Add table
Reference in a new issue