=================================================================== RCS file: /home/cvs/OpenXM_contrib2/fep/fep_edit.c,v retrieving revision 1.6 retrieving revision 1.7 diff -u -p -r1.6 -r1.7 --- OpenXM_contrib2/fep/fep_edit.c 2012/05/14 12:52:08 1.6 +++ OpenXM_contrib2/fep/fep_edit.c 2019/12/13 15:41:36 1.7 @@ -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[]= -"$Id: fep_edit.c,v 1.6 2012/05/14 12:52:08 ohara Exp $ (SRA)"; +"$Id: fep_edit.c,v 1.7 2019/12/13 15:41:36 fujimoto Exp $ (SRA)"; #endif /* lint */ #include @@ -26,7 +32,7 @@ static char rcsid[]= #if defined(__CYGWIN__) #include #define direct dirent -#elif defined(sun) || defined(__FreeBSD__) +#elif defined(sun) || defined(__FreeBSD__) || defined(ANDROID) #include #define direct dirent #include @@ -1771,7 +1777,9 @@ expand_file_name () int found = 0; int i; int tilde_expanded = 0; +#if !defined(ANDROID) CHAR *index(), *rindex(); +#endif if (delimiters == NULL) delimiters = DEFAULT_DELIMITERS; @@ -1884,7 +1892,9 @@ list_file_name () CHAR *cp; char dir[256]; DIR *dirp, *x_opendir(); +#if !defined(ANDROID) CHAR *index(), *rindex(); +#endif if (delimiters == NULL) delimiters = DEFAULT_DELIMITERS;