diff options
author | Kyle Evans <kevans@FreeBSD.org> | 2020-08-29 02:21:46 +0000 |
---|---|---|
committer | Kyle Evans <kevans@FreeBSD.org> | 2020-08-29 02:21:46 +0000 |
commit | 70e88083b552bb632e3da82532c3453581396672 (patch) | |
tree | b96a84a163c69bcaa3040d81b9f7f43697ceb609 /games/megaglest | |
parent | a294961e0504fc430c167330dfbc6a478a59e04b (diff) | |
download | ports-70e88083b552bb632e3da82532c3453581396672.tar.gz ports-70e88083b552bb632e3da82532c3453581396672.zip |
Notes
Diffstat (limited to 'games/megaglest')
-rw-r--r-- | games/megaglest/files/patch-source_shared__lib_include_feathery__ftp_ftpTypes.h | 28 | ||||
-rw-r--r-- | games/megaglest/files/patch-source_shared__lib_sources_feathery__ftp_ftpRuntime.c | 16 |
2 files changed, 44 insertions, 0 deletions
diff --git a/games/megaglest/files/patch-source_shared__lib_include_feathery__ftp_ftpTypes.h b/games/megaglest/files/patch-source_shared__lib_include_feathery__ftp_ftpTypes.h new file mode 100644 index 000000000000..0cac2d24ad30 --- /dev/null +++ b/games/megaglest/files/patch-source_shared__lib_include_feathery__ftp_ftpTypes.h @@ -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 + } diff --git a/games/megaglest/files/patch-source_shared__lib_sources_feathery__ftp_ftpRuntime.c b/games/megaglest/files/patch-source_shared__lib_sources_feathery__ftp_ftpRuntime.c new file mode 100644 index 000000000000..68a8c24bb3ad --- /dev/null +++ b/games/megaglest/files/patch-source_shared__lib_sources_feathery__ftp_ftpRuntime.c @@ -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 |