From 00d306d72f3789ba293bb83bf8abec21819a21c9 Mon Sep 17 00:00:00 2001 From: Frank Halasz Date: Tue, 7 Mar 2023 12:12:55 -0800 Subject: [PATCH] Maiko code changes needed to compile on Alpine Linux with clang. (#456) * Changes needed to compile maiko on Alpine Linux with clang. Switching to Alpine on github actions to streamline maiko release builds * Changes needed to compile maiko on Alpine Linux with clang. Switching to Alpine on github actions to streamline maiko release builds. * ether_nethub.c missing a couple of includes, and incorrectly including instead of plain * does not define MAXNAMLEN on Alpine Linux, but "locfile.h" compensates for this already, if it is modified to include , so use this in "dirdefs.h". --------- Co-authored-by: Nick Briggs --- inc/dirdefs.h | 3 ++- inc/locfile.h | 1 + src/ether_nethub.c | 4 +++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/inc/dirdefs.h b/inc/dirdefs.h index 260c23e..f46f389 100644 --- a/inc/dirdefs.h +++ b/inc/dirdefs.h @@ -1,8 +1,9 @@ #ifndef DIRDEFS_H #define DIRDEFS_H 1 -#include // for MAXNAMLEN + #include // for u_short, ino_t #include "lispemul.h" // for LispPTR +#include "locfile.h" // for MAXNAMLEN /* * FINFO and FPROP are used to store the information of the enumerated files * and directories. They are arranged in a form of linked list. Each list is diff --git a/inc/locfile.h b/inc/locfile.h index b0fda81..3aa3a31 100644 --- a/inc/locfile.h +++ b/inc/locfile.h @@ -9,6 +9,7 @@ /* */ /************************************************************************/ #include +#include /* for NAME_MAX */ #include "lispemul.h" /* for DLword */ #define FDEV_PAGE_SIZE 512 /* 1 page == 512 byte */ diff --git a/src/ether_nethub.c b/src/ether_nethub.c index 4f517ca..e93e19c 100644 --- a/src/ether_nethub.c +++ b/src/ether_nethub.c @@ -14,8 +14,10 @@ #include #include #include +#include +#include #include -#include +#include #include #include #include