Updated code to compile on GNU/Linux 5.15.0-75-generic #82-Ubuntu SMP and Code Sourcery MIPS toolchain

This commit is contained in:
David Gartner
2023-07-06 15:58:16 -06:00
parent 72ca88362a
commit a8ad228599
18 changed files with 167 additions and 42 deletions

View File

@@ -40,6 +40,8 @@
#include "y.tab.h"
#include "config.h"
struct file_list *ftab;
#define next_word(fp, wd) \
{ register char *word = get_word(fp); \
if (word == (char *)EOF) \
@@ -425,7 +427,7 @@ void makefile()
read_files();
strcpy(line, "../Makefile.kconf");
//strcat(line, archname);
strcat(line, archname);
ifp = fopen(line, "r");
if (ifp == 0) {
perror(line);