*** empty log message ***
[coreutils.git] / lib / dirfd.h
blob422f9766366bf239450642677ebbd2ecca8957d6
1 #if HAVE_CONFIG_H
2 # include <config.h>
3 #endif
5 #include <sys/types.h>
7 #if HAVE_DIRENT_H
8 # include <dirent.h>
9 #else /* not HAVE_DIRENT_H */
10 # define dirent direct
11 # if HAVE_SYS_NDIR_H
12 # include <sys/ndir.h>
13 # endif /* HAVE_SYS_NDIR_H */
14 # if HAVE_SYS_DIR_H
15 # include <sys/dir.h>
16 # endif /* HAVE_SYS_DIR_H */
17 # if HAVE_NDIR_H
18 # include <ndir.h>
19 # endif /* HAVE_NDIR_H */
20 #endif /* HAVE_DIRENT_H */
22 #ifndef HAVE_DECL_DIRFD
23 "this configure-time declaration test was not run"
24 #endif
25 #if !HAVE_DECL_DIRFD && !defined dirfd
26 int dirfd (DIR const *);
27 #endif