=================================================================== RCS file: /home/cvs/OpenXM_contrib2/fep/fep_com.c,v retrieving revision 1.1 retrieving revision 1.4 diff -u -p -r1.1 -r1.4 --- OpenXM_contrib2/fep/fep_com.c 2002/09/03 00:41:44 1.1 +++ 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.1 2002/09/03 00:41:44 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 @@ -22,6 +30,9 @@ static char rcsid[]= #include #include #include +#if defined(sun) +#include +#endif #include "fep_defs.h" #include "fep_glob.h" #include "fep_funcs.h" @@ -34,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 */ @@ -306,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;