-
Notifications
You must be signed in to change notification settings - Fork 28
Description
First, is there any reason ScarletDME would not run in Termux?
Here's what I get:
~/ScarletDME $ make
Compiling lnxport.o, 64 bit target.
In file included from /data/data/com.termux/files/home/ScarletDME/gplsrc/lnxport.c:52:
In file included from /data/data/com.termux/files/home/ScarletDME/gplsrc/qm.h:63:
/data/data/com.termux/files/home/ScarletDME/gplsrc/qmdefs.h:62:9: warning: '_XOPEN_CRYPT' macro
redefined [-Wmacro-redefined]
62 | #define _XOPEN_CRYPT
| ^
/data/data/com.termux/files/usr/bin/../../usr/include/bits/posix_limits.h:118:9: note: previous
definition is here
118 | #define _XOPEN_CRYPT __BIONIC_POSIX_FEATURE_MISSING
| ^
/data/data/com.termux/files/home/ScarletDME/gplsrc/lnxport.c:93:43: error: use of undeclared
identifier 'S_IREAD'
93 | hPort = open(name, O_RDWR | O_NONBLOCK, S_IREAD | S_IWRITE);
| ^~~~~~~
/data/data/com.termux/files/home/ScarletDME/gplsrc/lnxport.c:93:53: error: use of undeclared
identifier 'S_IWRITE'
93 | hPort = open(name, O_RDWR | O_NONBLOCK, S_IREAD | S_IWRITE);
| ^~~~~~~~
1 warning and 2 errors generated.
make: *** [Makefile:229: lnxport.o] Error 1
~/ScarletDME $
I've tried including <sys/stat.h> in lnxport.c as recommended, but the only reference to S_READ/WRITE in termux usr/include is in bash/posixstat.h (they're not in stat.h) but copying that to gplsrc and #include "posixstat.h" produces identical errors.