ports/textproc/refdb/files/patch-src_readln.h
Robert Clausecker ba66f05708 textproc/refdb: fix build with -fno-common
Move a variable definition from header file to source file.
This fixes the build on FreeBSD 13+.
Add a missing LIB_DEPENDS entry.
2023-04-18 23:55:28 +02:00

11 lines
335 B
C

--- src/readln.h.orig 2023-04-17 14:45:07 UTC
+++ src/readln.h
@@ -29,7 +29,7 @@ typedef struct {
char *doc; /* Documentation for this function. */
} COMMAND;
-COMMAND *thecommandlist;
+extern COMMAND *thecommandlist;
COMMAND *find_command(char *name, COMMAND *commands);
int execute_line (char *line, COMMAND *commands);