aboutsummaryrefslogtreecommitdiffstats
path: root/japanese
diff options
context:
space:
mode:
authorswills <swills@FreeBSD.org>2017-08-19 01:30:56 +0800
committerswills <swills@FreeBSD.org>2017-08-19 01:30:56 +0800
commitad6e5123ddd1267af72504cfabbf709dd980da6f (patch)
tree8cc77611acb644910963c52cf97ea6720919c368 /japanese
parentff2446fba32806134730bb6e20a6419508c734d6 (diff)
downloadfreebsd-ports-gnome-ad6e5123ddd1267af72504cfabbf709dd980da6f.tar.gz
freebsd-ports-gnome-ad6e5123ddd1267af72504cfabbf709dd980da6f.tar.zst
freebsd-ports-gnome-ad6e5123ddd1267af72504cfabbf709dd980da6f.zip
japanese/nethack34: Fix the BROKEN_FreeBSD_12 flag
Pass maintainership to submitter PR: 220595 Submitted by: WATANABE Kazuhiro <CQG00620@nifty.ne.jp>
Diffstat (limited to 'japanese')
-rw-r--r--japanese/nethack34/Makefile4
-rw-r--r--japanese/nethack34/files/patch-include-system.h2
2 files changed, 2 insertions, 4 deletions
diff --git a/japanese/nethack34/Makefile b/japanese/nethack34/Makefile
index 573bab6a5cf4..a9f009e36bc4 100644
--- a/japanese/nethack34/Makefile
+++ b/japanese/nethack34/Makefile
@@ -12,11 +12,9 @@ PATCH_SITES= SOURCEFORGE_JP/jnethack/58545
PATCHFILES= jnethack-${PORTVERSION}-0.11.diff.gz
PATCH_DIST_STRIP= -p1
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= CQG00620@nifty.ne.jp
COMMENT= Japanized NetHack
-BROKEN_FreeBSD_12= fails to build: stdlib.h: conflicting types for 'srandom'
-
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
USES= gmake tar:tgz
diff --git a/japanese/nethack34/files/patch-include-system.h b/japanese/nethack34/files/patch-include-system.h
index 9c0bce6a7791..77d923d8e06e 100644
--- a/japanese/nethack34/files/patch-include-system.h
+++ b/japanese/nethack34/files/patch-include-system.h
@@ -6,7 +6,7 @@
# endif
-# if (!defined(SUNOS4) && !defined(bsdi) && !defined(__FreeBSD__)) || defined(RANDOM)
+# if defined(__FreeBSD__)
-+E void FDECL(srandom, (unsigned long));
++#include <stdlib.h> /* srandom() differs between versions of FreeBSD. */
+# elif (!defined(SUNOS4) && !defined(bsdi) && !defined(__FreeBSD__)) || defined(RANDOM)
E void FDECL(srandom, (unsigned int));
# else