From: Roland Mas Date: Tue, 6 Aug 2024 12:54:06 +0200 Subject: Add missing prototypes to placate gcc-14 From: Niko Tyni Date: Mon, 5 Aug 2024 08:18:07 +0100 Subject: Add missing prototypes to placate GCC 14 unistd.h is for getcwd() and chdir() Bug-Debian: https://bugs.debian.org/1075085 --- src/cmdline/iff_shell.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/cmdline/iff_shell.c b/src/cmdline/iff_shell.c index 9c0bd86..bd2fca8 100755 --- a/src/cmdline/iff_shell.c +++ b/src/cmdline/iff_shell.c @@ -44,6 +44,10 @@ #include #endif +#ifdef HAVE_UNISTD_H +#include +#endif + #ifdef MY_READLINE # include "../../readline/readline.h" # include "../../readline/history.h" @@ -65,6 +69,7 @@ int iff_load_file(), write_history_file(); char *stripwhite(), *progname, *home; static char comstr[1024], line_ex[1024], hist_file[512]; void initialize_readline(); +int execute_line (char *line); #include "../lib/ifeffit.h" #include "commands.h"