=================================================================== RCS file: /home/cvs/OpenXM_contrib2/fep/fep_com.c,v retrieving revision 1.2 retrieving revision 1.4 diff -u -p -r1.2 -r1.4 --- OpenXM_contrib2/fep/fep_com.c 2002/09/18 10:03:28 1.2 +++ OpenXM_contrib2/fep/fep_com.c 2019/12/13 15:41:36 1.4 @@ -1,11 +1,19 @@ /* Copyright (c) 1987, 1988 by Software Research Associates, Inc. */ +#if defined(ANDROID) +#include +#define index(s,c) strchr(s,c) +#define rindex(s,c) strrchr(s,c) +#endif + #ifndef lint static char rcsid[]= -"$Header: /home/cvs/OpenXM_contrib2/fep/fep_com.c,v 1.2 2002/09/18 10:03:28 noro Exp $ (SRA)"; +"$Header: /home/cvs/OpenXM_contrib2/fep/fep_com.c,v 1.4 2019/12/13 15:41:36 fujimoto Exp $ (SRA)"; #endif /* lint */ #include +#include +#include #include #ifdef TERMIOS #include @@ -37,6 +45,11 @@ typedef struct { } MORE; MORE *create_more(); +#if defined(ANDROID) +#define S_IREAD S_IRUSR +#define S_IWRITE S_IWUSR +#define S_IEXEC S_IXUSR +#endif /* * Check command line if it call built-in function or not and execute it */ @@ -309,7 +322,11 @@ set (comline) char *comline; { char line[MAXCMDLEN]; +#if defined(ANDROID) + char *cp; +#else char *cp, *index(); +#endif char *argv[MAXARGS]; int argc;