X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fscandir.c;h=e17788c1d123b2bc5b4cad553ef59bf31825c063;hb=80a029602f5b2707ca8d2487843ecb9e0df74a6a;hp=9435c1b273baaf0363231598282b73017bf6790a;hpb=441aa3044f43e5572f58c354f01e6bc070acd5c7;p=gnulib.git diff --git a/lib/scandir.c b/lib/scandir.c index 9435c1b27..e17788c1d 100644 --- a/lib/scandir.c +++ b/lib/scandir.c @@ -1,4 +1,5 @@ -/* Copyright (C) 1992-1998, 2000, 2002, 2003, 2009 Free Software Foundation, Inc. +/* Copyright (C) 1992-1998, 2000, 2002-2003, 2009-2012 Free Software + Foundation, Inc. This file is part of the GNU C Library. This program is free software; you can redistribute it and/or modify it @@ -12,8 +13,7 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + along with this program; if not, see . */ #include @@ -32,6 +32,13 @@ #undef select +#ifndef _D_EXACT_NAMLEN +# define _D_EXACT_NAMLEN(d) strlen ((d)->d_name) +#endif +#ifndef _D_ALLOC_NAMLEN +# define _D_ALLOC_NAMLEN(d) (_D_EXACT_NAMLEN (d) + 1) +#endif + #if _LIBC # ifndef SCANDIR # define SCANDIR scandir