diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2023-12-16 23:51:09 +0000 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2023-12-16 23:52:30 +0000 |
commit | 1f7acbf04296e4d2553570642d7290d56b99228f (patch) | |
tree | e61423d31669861e6feae4da75287d2a9a5f8a17 | |
parent | cb76f46c97e9f4e4869acceb77a000b6cc2cda0e (diff) | |
download | gcc-1f7acbf04296e4d2553570642d7290d56b99228f.zip gcc-1f7acbf04296e4d2553570642d7290d56b99228f.tar.gz gcc-1f7acbf04296e4d2553570642d7290d56b99228f.tar.bz2 |
libstdc++: Fix bootstrap on AIX due to fileno macro
On AIX fileno is a function-like macro, so enclose the name in
parentheses to ensure we use the real function.
libstdc++-v3/ChangeLog:
* src/c++23/print.cc (__open_terminal(FILE*)): Avoid fileno
macro.
-rw-r--r-- | libstdc++-v3/src/c++23/print.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libstdc++-v3/src/c++23/print.cc b/libstdc++-v3/src/c++23/print.cc index d72ab85..be9762b 100644 --- a/libstdc++-v3/src/c++23/print.cc +++ b/libstdc++-v3/src/c++23/print.cc @@ -76,7 +76,7 @@ namespace if (int fd = ::_fileno(f); fd >= 0) return check_for_console((void*)_get_osfhandle(fd)); #elifdef _GLIBCXX_HAVE_UNISTD_H - if (int fd = ::fileno(f); fd >= 0 && ::isatty(fd)) + if (int fd = (::fileno)(f); fd >= 0 && ::isatty(fd)) return f; #endif } |