From: Jim Meyering Date: Thu, 22 Apr 1993 03:16:53 +0000 (+0000) Subject: merge with 3.5 X-Git-Tag: FILEUTILS-3_8_3b~31 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cff8d231ff42cdd533ba430a9a887bc856f9e44a;p=thirdparty%2Fcoreutils.git merge with 3.5 --- diff --git a/lib/backupfile.c b/lib/backupfile.c index 7a624cfece..f15e530bff 100644 --- a/lib/backupfile.c +++ b/lib/backupfile.c @@ -24,8 +24,12 @@ #include "backupfile.h" #if defined(STDC_HEADERS) || defined(HAVE_STRING_H) #include +#ifndef index #define index strchr +#endif +#ifndef rindex #define rindex strrchr +#endif #else #include #endif diff --git a/old/fileutils/ChangeLog b/old/fileutils/ChangeLog index 50eb10e281..48c31dd349 100644 --- a/old/fileutils/ChangeLog +++ b/old/fileutils/ChangeLog @@ -1,3 +1,29 @@ +Mon Apr 19 11:21:14 1993 Jim Meyering (meyering@comco.com) + + * Version 3.5. + + * ls.c, touch.c: Don't include time.h explicitly -- it's included + by system.h. From Franc,ois Pinard. + + * posixtm.y: Use TM_IN_SYS_TIME. + + * backupfile.c [index, rindex]: Don't redefine them. + + * system.h [alloca]: Don't redefine it. + + * configure.in: Check for sys/time.h; getdate.y needs it for + structs timeval and timezone on some systems. + +Sun Apr 18 22:40:19 1993 David J. MacKenzie (djm@kropotkin.gnu.ai.mit.edu) + + * ls.c: Include fnmatch.h after system.h, so we get our + definitions of FNM_*, not those from unistd.h. + + * mountlist.c [MOUNTED_GETMNTINFO]: Add #ifdef around MOUNT_PC. + + * configure.in: Fix test for 4.4BSD statfs to not grep for a + macro in cpp output. + Sun Apr 18 02:35:36 1993 Jim Meyering (meyering@comco.com) * configure.in: Check for gettimeofday. diff --git a/src/ls.c b/src/ls.c index f90e4291c7..2926eafac7 100644 --- a/src/ls.c +++ b/src/ls.c @@ -43,8 +43,8 @@ #include #include #include -#include #include "system.h" +#include #include "version.h" #ifndef S_IEXEC @@ -58,9 +58,7 @@ #define longdiff(a, b) ((a) - (b)) #endif -#ifdef STDC_HEADERS -#include -#else +#ifndef STDC_HEADERS char *ctime (); time_t time (); #endif diff --git a/src/touch.c b/src/touch.c index 9a8ca58413..efb45a1f6d 100644 --- a/src/touch.c +++ b/src/touch.c @@ -39,9 +39,7 @@ #include "system.h" #include "version.h" -#ifdef STDC_HEADERS -#include -#else +#ifndef STDC_HEADERS time_t mktime (); time_t time (); #endif