From owner-svn-ports-head@freebsd.org Thu Oct 15 11:22:59 2020 Return-Path: Delivered-To: svn-ports-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 1167043B125; Thu, 15 Oct 2020 11:22:59 +0000 (UTC) (envelope-from danfe@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CBn2V6Tcgz4Mnt; Thu, 15 Oct 2020 11:22:58 +0000 (UTC) (envelope-from danfe@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id C19591EBAB; Thu, 15 Oct 2020 11:22:58 +0000 (UTC) (envelope-from danfe@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 09FBMwqX075087; Thu, 15 Oct 2020 11:22:58 GMT (envelope-from danfe@FreeBSD.org) Received: (from danfe@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 09FBMvJL075082; Thu, 15 Oct 2020 11:22:57 GMT (envelope-from danfe@FreeBSD.org) Message-Id: <202010151122.09FBMvJL075082@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: danfe set sender to danfe@FreeBSD.org using -f From: Alexey Dokuchaev Date: Thu, 15 Oct 2020 11:22:57 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r552406 - in head/games/gtkradiant: . files X-SVN-Group: ports-head X-SVN-Commit-Author: danfe X-SVN-Commit-Paths: in head/games/gtkradiant: . files X-SVN-Commit-Revision: 552406 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Oct 2020 11:22:59 -0000 Author: danfe Date: Thu Oct 15 11:22:57 2020 New Revision: 552406 URL: https://svnweb.freebsd.org/changeset/ports/552406 Log: Ensure that there is only one variable definition per each object, as the C (and C++) standards mandated for years and compilers started to enforce as of recently (Clang 11, GCC 10). Reported by: pkg-fallout Added: head/games/gtkradiant/files/patch-tools__quake2__q2map__qrad.c (contents, props changed) head/games/gtkradiant/files/patch-tools__quake2__qdata_heretic2__sprites.c (contents, props changed) head/games/gtkradiant/files/patch-tools__quake3__q3data__q3data.c (contents, props changed) head/games/gtkradiant/files/patch-tools__quake3__q3map2__q3map2.h (contents, props changed) Modified: head/games/gtkradiant/Makefile Modified: head/games/gtkradiant/Makefile ============================================================================== --- head/games/gtkradiant/Makefile Thu Oct 15 10:58:30 2020 (r552405) +++ head/games/gtkradiant/Makefile Thu Oct 15 11:22:57 2020 (r552406) @@ -59,8 +59,21 @@ post-patch: # Do not #include header which is deprecated @${REINPLACE_CMD} -e '/#include/s, +-#ifndef WIN32 ++#ifdef NeXT + #include + #else + #include Added: head/games/gtkradiant/files/patch-tools__quake3__q3map2__q3map2.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/gtkradiant/files/patch-tools__quake3__q3map2__q3map2.h Thu Oct 15 11:22:57 2020 (r552406) @@ -0,0 +1,13 @@ +--- tools/quake3/q3map2/q3map2.h.orig 2006-02-10 22:01:20 UTC ++++ tools/quake3/q3map2/q3map2.h +@@ -939,6 +939,10 @@ + } + surfaceType_t; + ++// Q_EXTERN is defined only later :( ++#ifndef MAIN_C ++extern ++#endif + char *surfaceTypes[ NUM_SURFACE_TYPES ] + #ifndef MAIN_C + ;