summaryrefslogtreecommitdiff
path: root/dir.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>1992-06-11 04:58:32 +0000
committerRoland McGrath <roland@redhat.com>1992-06-11 04:58:32 +0000
commita61fc8acd1648f11e7b359e8d5505a2a620e2423 (patch)
tree71e9e50018abce15bbf19e2deee57e483b08da35 /dir.c
parentb87ff76b7ea573fb8d6792b74370c84dfbf3462d (diff)
downloadgunmake-a61fc8acd1648f11e7b359e8d5505a2a620e2423.tar.gz
Formerly dir.c.~2~
Diffstat (limited to 'dir.c')
-rw-r--r--dir.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/dir.c b/dir.c
index e3d3fa5..8fcfb1c 100644
--- a/dir.c
+++ b/dir.c
@@ -1,5 +1,5 @@
/* Directory hashing for GNU Make.
-Copyright (C) 1988, 1989, 1991 Free Software Foundation, Inc.
+Copyright (C) 1988, 1989, 1991, 1992 Free Software Foundation, Inc.
This file is part of GNU Make.
GNU Make is free software; you can redistribute it and/or modify
@@ -28,7 +28,11 @@ 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 D_NAMLEN(d) ((d)->d_namlen)
#if defined (USG) && !defined (sgi)