X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/950ab32d38ab6ed1940ba58ff250d414e9db4708..3ec4dd9781ed23be4a2b939fa5bfded619a1a8fb:/util.c diff --git a/util.c b/util.c index d04a2173..2a479458 100644 --- a/util.c +++ b/util.c @@ -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;