diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-10-03 07:14:16 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-10-03 07:14:16 +0100 |
commit | c0f9c483e315379eabfbbef34fad51dbe42c896d (patch) | |
tree | 08d460d83cae01389c3f64234ff45e40e04a2963 /games-mud/tf/files | |
parent | 7748146936014bb364c51e2547982e9f59a5f31a (diff) |
gentoo auto-resync : 03:10:2022 - 07:14:15
Diffstat (limited to 'games-mud/tf/files')
-rw-r--r-- | games-mud/tf/files/tf-5.0_beta8_p8-Fix-implicit-function-declarations.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/games-mud/tf/files/tf-5.0_beta8_p8-Fix-implicit-function-declarations.patch b/games-mud/tf/files/tf-5.0_beta8_p8-Fix-implicit-function-declarations.patch new file mode 100644 index 000000000000..a8ff73a84201 --- /dev/null +++ b/games-mud/tf/files/tf-5.0_beta8_p8-Fix-implicit-function-declarations.patch @@ -0,0 +1,26 @@ +From f0cf80b3034c4cad66608ddcec0709b3761adbfc Mon Sep 17 00:00:00 2001 +From: Sam James <sam@gentoo.org> +Date: Sun, 2 Oct 2022 20:31:30 +0100 +Subject: [PATCH] Fix implicit function declarations + +Bug: https://bugs.gentoo.org/871084 +--- a/src/malloc.h ++++ b/src/malloc.h +@@ -34,6 +34,7 @@ extern int low_memory_warning; + # define realloc(ptr, size) mrealloc(NULL, ptr, size) + # define free(ptr) mfree(NULL, ptr) + #else ++# include <stdlib.h> + # define mmalloc(md, size) malloc(size) + # define mcalloc(md, size) calloc(size) + # define mrealloc(md, ptr, size) realloc(ptr, size) +--- a/src/tfio.c ++++ b/src/tfio.c +@@ -46,6 +46,7 @@ static const char RCSid[] = "$Id: tfio.c,v 35004.114 2007/01/13 23:12:39 kkeys E + #include "keyboard.h" /* keyboard_pos */ + #include "expand.h" /* current_command */ + #include "cmdlist.h" ++#include "socket.h" + + TFILE *loadfile = NULL; /* currently /load'ing file */ + int loadline = 0; /* line number in /load'ing file */ |