Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 31 Jul 2016 09:41:12 +0000 (UTC)
From:      Ed Schouten <ed@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r419352 - in head/games: falconseye/files nethack34/files nethack36/files
Message-ID:  <201607310941.u6V9fCk2087704@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ed (src committer)
Date: Sun Jul 31 09:41:12 2016
New Revision: 419352
URL: https://svnweb.freebsd.org/changeset/ports/419352

Log:
  Don't let the Nethack ports declare srandom() themselves.
  
  As the prototype of srandom() has changed, be sure to no longer declare
  the prototype of this function ourselves. Instead, simply pull in the
  <stdlib.h> header that declares this function.
  
  Reported by:	antoine@
  Reviewed by:	glewis@
  Differential Revision:	https://reviews.freebsd.org/D7378

Modified:
  head/games/falconseye/files/patch-include_system_h
  head/games/nethack34/files/patch-include-system.h
  head/games/nethack36/files/patch-include-system.h

Modified: head/games/falconseye/files/patch-include_system_h
==============================================================================
--- head/games/falconseye/files/patch-include_system_h	Sun Jul 31 09:31:01 2016	(r419351)
+++ head/games/falconseye/files/patch-include_system_h	Sun Jul 31 09:41:12 2016	(r419352)
@@ -5,7 +5,7 @@
  # endif
  # if !defined(SUNOS4) || defined(RANDOM)
 -E void FDECL(srandom, (unsigned int));
-+E void FDECL(srandom, (unsigned long));
++#include <stdlib.h> /* srandom() differs between versions of FreeBSD. */
  # else
  #  if !defined(bsdi) && !defined(__FreeBSD__)
  E int FDECL(srandom, (unsigned int));

Modified: head/games/nethack34/files/patch-include-system.h
==============================================================================
--- head/games/nethack34/files/patch-include-system.h	Sun Jul 31 09:31:01 2016	(r419351)
+++ head/games/nethack34/files/patch-include-system.h	Sun Jul 31 09:41:12 2016	(r419352)
@@ -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

Modified: head/games/nethack36/files/patch-include-system.h
==============================================================================
--- head/games/nethack36/files/patch-include-system.h	Sun Jul 31 09:31:01 2016	(r419351)
+++ head/games/nethack36/files/patch-include-system.h	Sun Jul 31 09:41:12 2016	(r419352)
@@ -6,7 +6,7 @@
  #endif
 -#if (!defined(SUNOS4) && !defined(bsdi) && !defined(__FreeBSD__)) \
 +# 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));



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201607310941.u6V9fCk2087704>