mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
Assume <dirent.h> exists, since gnulib assumes this now as well.
This commit is contained in:
1 parent
2b6236d156
commit
d6697c60c3
2 files changed
+8
-9
No files matched your search
@@ -1,3 +1,8 @@
|
||||
2006-07-11 Paul Eggert <eggert@cs.ucla.edu>
|
||||
|
||||
* src/system.h: Assume <dirent.h> exists, since gnulib assumes
|
||||
this now as well.
|
||||
|
||||
2006-07-09 Jim Meyering <jim@meyering.net>
|
||||
|
||||
* tests/mv/dir2dir: Adjust so failing with ENOTEMPTY is ok, too.
|
||||
|
||||
+3
-9
@@ -224,15 +224,9 @@ initialize_exit_failure (int status)
|
||||
# define O_TEXT 0
|
||||
#endif
|
||||
|
||||
#if HAVE_DIRENT_H
|
||||
# include <dirent.h>
|
||||
# ifndef _D_EXACT_NAMLEN
|
||||
# define _D_EXACT_NAMLEN(dp) strlen ((dp)->d_name)
|
||||
# endif
|
||||
#else
|
||||
# define dirent direct
|
||||
# define _D_EXACT_NAMLEN(dp) (dp)->d_namlen
|
||||
# include <ndir.h>
|
||||
#include <dirent.h>
|
||||
#ifndef _D_EXACT_NAMLEN
|
||||
# define _D_EXACT_NAMLEN(dp) strlen ((dp)->d_name)
|
||||
#endif
|
||||
|
||||
enum
|
||||
|
||||
Reference in new issue
Block a user