in lib:
[gnulib.git] / lib / dirfd.h
1 #if HAVE_CONFIG_H
2 # include <config.h>
3 #endif
4
5 #include <sys/types.h>
6
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 */
21
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