=================================================================== RCS file: /home/cvs/OpenXM_contrib2/fep/fep_com.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -p -r1.3 -r1.4 --- OpenXM_contrib2/fep/fep_com.c 2010/04/23 05:34:05 1.3 +++ OpenXM_contrib2/fep/fep_com.c 2019/12/13 15:41:36 1.4 @@ -1,8 +1,14 @@ /* 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.3 2010/04/23 05:34:05 ohara 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 @@ -39,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 */ @@ -311,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;