From 9664a8ac76802ff1c6700c1e748b38b3de9baef1 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Fri, 6 Mar 2020 20:29:45 +0000 Subject: Mod os3support files so file.c builds --- frontends/amiga/os3support.c | 7 ++++++- frontends/amiga/os3support.h | 5 +++++ 2 files changed, 11 insertions(+), 1 deletion(-) (limited to 'frontends/amiga') diff --git a/frontends/amiga/os3support.c b/frontends/amiga/os3support.c index 645496b73..98843c702 100644 --- a/frontends/amiga/os3support.c +++ b/frontends/amiga/os3support.c @@ -28,7 +28,6 @@ #include #include #include -#include #include #include @@ -182,6 +181,12 @@ char *strsep(char **s1, const char *s2) return p1; } +int alphasort(const struct dirent **d1, const struct dirent **d2) +{ + /*\todo stub function, needs writing, preferably into clib2 */ + return 0; +} + int scandir(const char *dir, struct dirent ***namelist, int (*filter)(const struct dirent *), int (*compar)(const struct dirent **, const struct dirent **)) diff --git a/frontends/amiga/os3support.h b/frontends/amiga/os3support.h index fde032a18..dc4e06503 100644 --- a/frontends/amiga/os3support.h +++ b/frontends/amiga/os3support.h @@ -27,6 +27,7 @@ #ifndef __amigaos4__ #include +#include #include #include @@ -257,6 +258,10 @@ char *ASPrintf(const char *fmt, ...); /* C */ char *strlwr(char *str); +int alphasort(const struct dirent **d1, const struct dirent **d2); +int scandir(const char *dir, struct dirent ***namelist, + int (*filter)(const struct dirent *), + int (*compar)(const struct dirent **, const struct dirent **)); #endif #endif -- cgit v1.2.3