--- make-3.80rc1.orig/dir.c Thu Jul 11 19:48:03 2002 +++ make-3.80rc1/dir.c Mon Jul 15 15:52:13 2002 @@ -653,13 +653,19 @@ return 0; } - while ((d = readdir (dir->dirstream)) != 0) + for(;;) { /* Enter the file in the hash table. */ unsigned int len; struct dirfile dirfile_key; struct dirfile **dirfile_slot; + errno = 0; + if ((d = readdir (dir->dirstream)) == 0) { + if (errno == EINTR) + continue; + break; + } #if defined(VMS) && defined(HAVE_DIRENT_H) /* In VMS we get file versions too, which have to be stripped off */ {