X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fopendir.c;h=de0ea5a24f60dffc793bd5683cac43ece299dbdb;hb=533101a268dc5015a140ff4695d8eeb04fbe57b6;hp=cb7f67c10179d5d3015aef2fac4781b52a18efdb;hpb=994c21f30d225cd35a8fa57851df8bc6bd66d97f;p=gnulib.git diff --git a/lib/opendir.c b/lib/opendir.c index cb7f67c10..de0ea5a24 100644 --- a/lib/opendir.c +++ b/lib/opendir.c @@ -1,5 +1,5 @@ /* Start reading the entries of a directory. - Copyright (C) 2006-2011 Free Software Foundation, Inc. + Copyright (C) 2006-2013 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -19,6 +19,9 @@ /* Specification. */ #include +#include +#include + #if HAVE_OPENDIR /* Override opendir(), to keep track of the open file descriptors. @@ -26,8 +29,6 @@ #else -# include -# include # include # include "dirent-private.h" @@ -35,6 +36,10 @@ #endif +#if REPLACE_FCHDIR +# include +#endif + DIR * opendir (const char *dir_name) {