summaryrefslogtreecommitdiff
path: root/include/dirent.h
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-07-20 13:34:16 -0400
committerMike Frysinger <vapier@gentoo.org>2009-07-20 13:34:16 -0400
commit91f91bcb3abda3780347d681c3bef6201b9ca60f (patch)
tree51bdd3f71f336cc0442f0eb4a6106f8304130e8e /include/dirent.h
parent75552ab845005d5b386d4c1383d9c10193168847 (diff)
sync a few headers with glibc (no functional changes)
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'include/dirent.h')
-rw-r--r--include/dirent.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/include/dirent.h b/include/dirent.h
index 25fd77c4e..d4fc5c7d9 100644
--- a/include/dirent.h
+++ b/include/dirent.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991-2000, 2003, 2004 Free Software Foundation, Inc.
+/* Copyright (C) 1991-2000, 2003-2005, 2009 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -226,15 +226,17 @@ libc_hidden_proto(dirfd)
# define dirfd(dirp) _DIR_dirfd (dirp)
# endif
-# ifndef MAXNAMLEN
+# if defined __USE_BSD || defined __USE_MISC
+# ifndef MAXNAMLEN
/* Get the definitions of the POSIX.1 limits. */
# include <bits/posix1_lim.h>
/* `MAXNAMLEN' is the BSD name for what POSIX calls `NAME_MAX'. */
-# ifdef NAME_MAX
-# define MAXNAMLEN NAME_MAX
-# else
-# define MAXNAMLEN 255
+# ifdef NAME_MAX
+# define MAXNAMLEN NAME_MAX
+# else
+# define MAXNAMLEN 255
+# endif
# endif
# endif