From 12fbdbf4187e908b859458fba7a448e854b8ed5f Mon Sep 17 00:00:00 2001 From: Patrick Pelletier Date: Fri, 17 Aug 2018 11:20:34 -0700 Subject: [PATCH] sim65: S_IREAD and S_IWRITE are nonstandard. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The Linux build was failing with: sim65/paravirt.c: In function ‘PVOpen’: sim65/paravirt.c:217:18: error: ‘S_IREAD’ undeclared (first use in this function) OMode |= S_IREAD; ^ sim65/paravirt.c:217:18: note: each undeclared identifier is reported only once for each function it appears in sim65/paravirt.c:220:18: error: ‘S_IWRITE’ undeclared (first use in this function) OMode |= S_IWRITE; ^ make[1]: *** [../wrk/sim65/paravirt.o] Error 1 --- src/sim65/paravirt.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/sim65/paravirt.c b/src/sim65/paravirt.c index fda2839af..1c431fdc9 100644 --- a/src/sim65/paravirt.c +++ b/src/sim65/paravirt.c @@ -48,6 +48,12 @@ /* Anyone else */ # include #endif +#ifndef S_IREAD +# define S_IREAD S_IRUSR +#endif +#ifndef S_IWRITE +# define S_IWRITE S_IWUSR +#endif /* common */ #include "cmdline.h" -- 2.39.5