*** empty log message ***

This commit is contained in:
Andrew Tridgell committed 1998-01-27 17:51:37 +00:00
1 parent 6bbbc08b83
commit 1e9f155ade
4 files changed
+27 -13

No files matched your search

+1 -1
View File
@@ -20,7 +20,7 @@ SHELL=/bin/sh
.SUFFIXES:
.SUFFIXES: .c .o
LIBOBJ=lib/getopt.o lib/fnmatch.o lib/zlib.o
LIBOBJ=lib/getopt.o lib/fnmatch.o lib/zlib.o lib/compat.o
OBJS1=rsync.o exclude.o util.o md4.o main.o checksum.o match.o
OBJS=$(OBJS1) flist.o io.o compat.o hlink.o token.o uidlist.o $(LIBOBJ)
+9
View File
@@ -52,4 +52,13 @@ main() { exit(fnmatch("*.o", "x.o", 0) == 0? 0: 1); }],
echo yes;AC_DEFINE(HAVE_FNMATCH),
echo no)
echo $ac_n "checking for utimbuf ... $ac_c"
AC_TRY_COMPILE([#include <sys/types.h>
#include <utime.h>],
[int set_modtime(char *fname,time_t modtime)
{ struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = modtime;
return utime(fname,&tbuf); }],
echo yes;AC_DEFINE(HAVE_UTIMBUF),
echo no)
AC_OUTPUT(Makefile)
+16
View File
@@ -333,5 +333,21 @@ extern int errno;
#define S_IWUSR 0200
#endif
#ifndef S_ISBLK
#define S_ISBLK(mode) (((mode) & (_S_IFMT)) == (_S_IFBLK))
#endif
#ifndef S_ISCHR
#define S_ISCHR(mode) (((mode) & (_S_IFMT)) == (_S_IFCHR))
#endif
#ifndef S_ISDIR
#define S_ISDIR(mode) (((mode) & (_S_IFMT)) == (_S_IFDIR))
#endif
#ifndef S_ISREG
#define S_ISREG(mode) (((mode) & (_S_IFMT)) == (_S_IFREG))
#endif
#define IS_DEVICE(mode) (S_ISCHR(mode) || S_ISBLK(mode))
+1 -12
View File
@@ -164,21 +164,10 @@ void out_of_memory(char *str)
}
#ifndef HAVE_STRDUP
char *strdup(char *s)
{
int l = strlen(s) + 1;
char *ret = (char *)malloc(l);
if (ret)
strcpy(ret,s);
return ret;
}
#endif
int set_modtime(char *fname,time_t modtime)
{
#ifdef HAVE_UTIME_H
#ifdef HAVE_UTIMBUF
struct utimbuf tbuf;
tbuf.actime = time(NULL);
tbuf.modtime = modtime;