Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Aug 2020 02:21:46 +0000 (UTC)
From:      Kyle Evans <kevans@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r546865 - head/games/megaglest/files
Message-ID:  <202008290221.07T2LkBn027821@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kevans
Date: Sat Aug 29 02:21:46 2020
New Revision: 546865
URL: https://svnweb.freebsd.org/changeset/ports/546865

Log:
  games/megaglest: fix build with LLVM 11
  
  The fallout here is due to the new -fno-common default in GCC 10 / LLVM 11.
  
  PR:		248870
  Obtained from:	https://github.com/MegaGlest/megaglest-source/issues/197
  MFH:		2020Q3 (-fno-common build fix)

Added:
  head/games/megaglest/files/patch-source_shared__lib_include_feathery__ftp_ftpTypes.h   (contents, props changed)
  head/games/megaglest/files/patch-source_shared__lib_sources_feathery__ftp_ftpRuntime.c   (contents, props changed)

Added: head/games/megaglest/files/patch-source_shared__lib_include_feathery__ftp_ftpTypes.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/megaglest/files/patch-source_shared__lib_include_feathery__ftp_ftpTypes.h	Sat Aug 29 02:21:46 2020	(r546865)
@@ -0,0 +1,28 @@
+--- source/shared_lib/include/feathery_ftp/ftpTypes.h.orig	2020-08-25 07:39:46 UTC
++++ source/shared_lib/include/feathery_ftp/ftpTypes.h
+@@ -69,7 +69,7 @@ typedef uint16_t port_t;
+ extern "C" {
+ #endif
+ 
+-int VERBOSE_MODE_ENABLED;
++extern int VERBOSE_MODE_ENABLED;
+ 
+ typedef ip_t (*ftpFindExternalFTPServerIpType)(ip_t clientIp);
+ typedef void (*ftpAddUPNPPortForwardType)(int internalPort, int externalPort);
+@@ -77,11 +77,11 @@ typedef void (*ftpRemoveUPNPPortForwardType)(int inter
+ typedef int (*ftpIsValidClientType)(ip_t clientIp);
+ typedef int (*ftpIsClientAllowedToGetFileType)(ip_t clientIp, const char *username, const char *filename);
+ 
+-ftpFindExternalFTPServerIpType	ftpFindExternalFTPServerIp;
+-ftpAddUPNPPortForwardType		ftpAddUPNPPortForward;
+-ftpRemoveUPNPPortForwardType	ftpRemoveUPNPPortForward;
+-ftpIsValidClientType            ftpIsValidClient;
+-ftpIsClientAllowedToGetFileType ftpIsClientAllowedToGetFile;
++extern ftpFindExternalFTPServerIpType	ftpFindExternalFTPServerIp;
++extern ftpAddUPNPPortForwardType		ftpAddUPNPPortForward;
++extern ftpRemoveUPNPPortForwardType	ftpRemoveUPNPPortForward;
++extern ftpIsValidClientType            ftpIsValidClient;
++extern ftpIsClientAllowedToGetFileType ftpIsClientAllowedToGetFile;
+ 
+ #ifdef	__cplusplus
+ }

Added: head/games/megaglest/files/patch-source_shared__lib_sources_feathery__ftp_ftpRuntime.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/megaglest/files/patch-source_shared__lib_sources_feathery__ftp_ftpRuntime.c	Sat Aug 29 02:21:46 2020	(r546865)
@@ -0,0 +1,16 @@
+--- source/shared_lib/sources/feathery_ftp/ftpRuntime.c.orig	2020-08-25 07:57:08 UTC
++++ source/shared_lib/sources/feathery_ftp/ftpRuntime.c
+@@ -30,6 +30,13 @@
+ #include "ftp.h"
+ #include "ftpMessages.h"
+ 
++int VERBOSE_MODE_ENABLED;
++
++ftpFindExternalFTPServerIpType ftpFindExternalFTPServerIp;
++ftpAddUPNPPortForwardType              ftpAddUPNPPortForward;
++ftpRemoveUPNPPortForwardType   ftpRemoveUPNPPortForward;
++ftpIsValidClientType            ftpIsValidClient;
++ftpIsClientAllowedToGetFileType ftpIsClientAllowedToGetFile;
+ 
+ /**
+  * @brief server-sockets that listens for incoming connections



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