Files
macports-ports/net/tf/files/patch-src-tfio.c.diff
Ryan Carsten Schmidt c8e95426db tf: Fix implicit declaration of functions
Closes: https://trac.macports.org/ticket/61556

New versions of clang and gcc default to -fno-common which fails on this
code due to multiple definitions of _world_decl. Fix this with -fcommon.

Also modernize checksums, add modeline, and avoid HTTP redirects.
2024-08-02 18:32:36 -05:00

14 lines
419 B
Diff

Fix:
error: implicit declaration of function 'main_loop' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
--- src/tfio.c.orig 2024-08-02 17:57:42.000000000 -0500
+++ src/tfio.c 2024-08-02 18:00:25.000000000 -0500
@@ -37,6 +37,7 @@
#include "search.h" /* queues */
#include "tfio.h"
#include "tfselect.h"
+#include "socket.h"
#include "output.h"
#include "attr.h"
#include "macro.h" /* macro_body() */