diff -cr findutils-4.1-old/config.h.in findutils-4.1/config.h.in *** findutils-4.1-old/config.h.in Sat Oct 1 19:35:24 1994 --- findutils-4.1/config.h.in Sun Mar 15 20:45:49 1998 *************** *** 44,49 **** --- 44,52 ---- /* Define if you have the strftime function. */ #undef HAVE_STRFTIME + /* Define if you have the basename function. */ + #undef HAVE_BASENAME + /* Define if you have that is POSIX.1 compatible. */ #undef HAVE_SYS_WAIT_H diff -cr findutils-4.1-old/configure.in findutils-4.1/configure.in *** findutils-4.1-old/configure.in Tue Oct 18 00:09:51 1994 --- findutils-4.1/configure.in Sun Mar 15 20:29:07 1998 *************** *** 77,83 **** dnl Checks for library functions. AC_REPLACE_FUNCS(memcmp memset mktime stpcpy strdup strftime strspn strstr strtol) ! AC_CHECK_FUNCS(fchdir getcwd strerror) AC_FUNC_STRFTIME AC_FUNC_VPRINTF AC_FUNC_ALLOCA --- 77,83 ---- dnl Checks for library functions. AC_REPLACE_FUNCS(memcmp memset mktime stpcpy strdup strftime strspn strstr strtol) ! AC_CHECK_FUNCS(fchdir getcwd strerror basename) AC_FUNC_STRFTIME AC_FUNC_VPRINTF AC_FUNC_ALLOCA diff -cr findutils-4.1-old/find/defs.h findutils-4.1/find/defs.h *** findutils-4.1-old/find/defs.h Wed Nov 2 15:59:15 1994 --- findutils-4.1/find/defs.h Sun Mar 15 20:30:44 1998 *************** *** 301,307 **** --- 301,309 ---- boolean mark_stat P_((struct predicate *tree)); /* util.c */ + #ifndef HAVE_BASENAME char *basename P_((char *fname)); + #endif struct predicate *get_new_pred P_((void)); struct predicate *get_new_pred_chk_op P_((void)); struct predicate *insert_primary P_((boolean (*pred_func )())); diff -cr findutils-4.1-old/find/pred.c findutils-4.1/find/pred.c *** findutils-4.1-old/find/pred.c Wed Nov 2 15:59:23 1994 --- findutils-4.1/find/pred.c Sun Mar 15 20:35:11 1998 *************** *** 16,25 **** Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include #include #include #include - #include #include #include #include --- 16,25 ---- Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include + #include #include #include #include #include #include #include diff -cr findutils-4.1-old/find/util.c findutils-4.1/find/util.c *** findutils-4.1-old/find/util.c Thu Oct 20 00:49:47 1994 --- findutils-4.1/find/util.c Sun Mar 15 20:31:51 1998 *************** *** 21,26 **** --- 21,27 ---- #include #include "defs.h" + #ifndef HAVE_BASENAME /* Return the last component of pathname FNAME, with leading slashes compressed into one slash. */ *************** *** 38,43 **** --- 39,45 ---- p = strrchr (fname, '/'); return (p == NULL ? fname : p + 1); } + #endif /* Return a pointer to a new predicate structure, which has been linked in as the last one in the predicates list.