summaryrefslogtreecommitdiff
path: root/dir.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>1992-06-25 01:05:20 +0000
committerRoland McGrath <roland@redhat.com>1992-06-25 01:05:20 +0000
commite293b9661072f17342850b1a7ebeff1e6d11f043 (patch)
tree1855ae816d07b4d05615aa4f16a8187b97e2e933 /dir.c
parentf2c51355ed80aa64119c83508b96881a8d798c66 (diff)
downloadmake-e293b9661072f17342850b1a7ebeff1e6d11f043.tar.gz
Formerly dir.c.~3~
Diffstat (limited to 'dir.c')
-rw-r--r--dir.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dir.c b/dir.c
index 8fcfb1c..94c00bc 100644
--- a/dir.c
+++ b/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)