aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/config.h.in
diff options
context:
space:
mode:
authorAlexandre Oliva <oliva@adacore.com>2022-06-23 23:20:53 -0300
committerAlexandre Oliva <oliva@gnu.org>2022-06-23 23:28:14 -0300
commit93070671eae44f24ba822383e17571a39257c637 (patch)
treeec63cf8c4576857b089c6322d5e4a65c4d75d427 /libstdc++-v3/config.h.in
parent5d8a5f04acec697c893e1c2263032bc01e2c2f2b (diff)
downloadgcc-93070671eae44f24ba822383e17571a39257c637.zip
gcc-93070671eae44f24ba822383e17571a39257c637.tar.gz
gcc-93070671eae44f24ba822383e17571a39257c637.tar.bz2
libstdc++: check for openat
rtems6.0 has fdopendir, and fcntl.h defines AT_FDCWD and declares openat, but there's no openat in libc. Adjust dir-common.h to not assume ::openat just because of AT_FDCWD. for libstdc++-v3/ChangeLog * acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check for openat. * configure, config.h.in: Rebuilt. * src/filesystem/dir-common.h (openat): Use ::openat if _GLIBCXX_HAVE_OPENAT. * src/filesystem/dir.cc (dir_and_pathname): Use dirfd if _GLIBCXX_HAVE_OPENAT.
Diffstat (limited to 'libstdc++-v3/config.h.in')
-rw-r--r--libstdc++-v3/config.h.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/libstdc++-v3/config.h.in b/libstdc++-v3/config.h.in
index f30a8c5..2a3972e 100644
--- a/libstdc++-v3/config.h.in
+++ b/libstdc++-v3/config.h.in
@@ -292,6 +292,9 @@
/* Define if <math.h> defines obsolete isnan function. */
#undef HAVE_OBSOLETE_ISNAN
+/* Define if openat is available in <fcntl.h>. */
+#undef HAVE_OPENAT
+
/* Define if poll is available in <poll.h>. */
#undef HAVE_POLL