mirror of
https://git.savannah.gnu.org/git/make.git
synced 2025-02-06 06:26:52 +00:00
Formerly dir.c.~3~
This commit is contained in:
parent
f2c51355ed
commit
e293b96610
1 changed files with 2 additions and 2 deletions
4
dir.c
4
dir.c
|
@ -27,13 +27,13 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
|
|||
|
||||
#if defined (POSIX) || defined (DIRENT) || defined (__GNU_LIBRARY__)
|
||||
#include <dirent.h>
|
||||
#define direct dirent
|
||||
#ifndef __GNU_LIBRARY__
|
||||
#define D_NAMLEN(d) strlen((d)->d_name)
|
||||
#else
|
||||
#define D_NAMLEN(d) ((d)->d_namlen)
|
||||
#endif
|
||||
#else /* not POSIX or DIRENT */
|
||||
#define direct dirent
|
||||
#define D_NAMLEN(d) ((d)->d_namlen)
|
||||
#if defined (USG) && !defined (sgi)
|
||||
#if defined (SYSNDIR)
|
||||
|
@ -154,7 +154,7 @@ dir_file_exists_p (dirname, filename)
|
|||
register char *p;
|
||||
register struct directory *dir;
|
||||
register struct dirfile *df;
|
||||
register struct direct *d;
|
||||
register struct dirent *d;
|
||||
dir = find_directory (dirname);
|
||||
|
||||
if (dir->files == 0)
|
||||
|
|
Loading…
Reference in a new issue