mirror of
https://github.com/cc65/cc65.git
synced 2024-12-23 19:29:37 +00:00
sim65: S_IREAD and S_IWRITE are nonstandard.
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
This commit is contained in:
parent
974188796c
commit
12fbdbf418
@ -48,6 +48,12 @@
|
|||||||
/* Anyone else */
|
/* Anyone else */
|
||||||
# include <unistd.h>
|
# include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef S_IREAD
|
||||||
|
# define S_IREAD S_IRUSR
|
||||||
|
#endif
|
||||||
|
#ifndef S_IWRITE
|
||||||
|
# define S_IWRITE S_IWUSR
|
||||||
|
#endif
|
||||||
|
|
||||||
/* common */
|
/* common */
|
||||||
#include "cmdline.h"
|
#include "cmdline.h"
|
||||||
|
Loading…
Reference in New Issue
Block a user