X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/d6e6ecbdbf0452ec95afc98c2700076e39b4692f..59503278bfc27ad27c03dfaeab4e3de02198f81c:/syscall.c diff --git a/syscall.c b/syscall.c index 5bf3e476..96b42b6f 100644 --- a/syscall.c +++ b/syscall.c @@ -136,18 +136,9 @@ OFF_T do_lseek(int fd, OFF_T offset, int whence) char *d_name(struct dirent *di) { -#if defined(SunOS) && SunOS >= 50 - static int first = 1; - static int broken; - if (first) { - first = 0; - if (!di->d_name[0] && strcmp(".", di->d_name-2)==0) { - fprintf(stderr,"WARNING: broken readdir\n"); - broken = 1; - } - } - if (broken) - return (di->d_name - 2); -#endif +#if HAVE_BROKEN_READDIR + return (di->d_name - 2); +#else return di->d_name; +#endif }