glibc/sysdeps/unix/sysv/linux/bits
Emilio Cobos Álvarez a4b3bbf71e Don't use a custom wrapper macro around __has_include (bug 25189).
This causes issues when using clang with -frewrite-includes to e.g.,
submit the translation unit to a distributed compiler.

In my case, I was building Firefox using sccache.

See [1] for a reduced test-case since I initially thought this was a
clang bug, and [2] for more context.

Apparently doing this is invalid C++ per [cpp.cond], which mentions [3]:

> The #ifdef and #ifndef directives, and the defined conditional
> inclusion operator, shall treat __has_include and __has_cpp_attribute
> as if they were the names of defined macros.  The identifiers
> __has_include and __has_cpp_attribute shall not appear in any context
> not mentioned in this subclause.

[1]: https://bugs.llvm.org/show_bug.cgi?id=43982
[2]: https://bugs.llvm.org/show_bug.cgi?id=37990
[3]: http://eel.is/c++draft/cpp.cond#7.sentence-2

Change-Id: Id4b8ee19176a9e4624b533087ba870c418f27e60
(cherry picked from commit bfa864e164)
2019-11-22 13:09:01 +01:00
..
types Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
a.out.h
dirent.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
dirent_ext.h Linux: Move getdents64 to <dirent.h> 2019-07-29 21:02:46 +02:00
epoll.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
errno.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
eventfd.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
fcntl-linux.h Add F_SEAL_FUTURE_WRITE from Linux 5.1 to bits/fcntl-linux.h. 2019-05-23 13:20:48 +00:00
fcntl.h
in.h Add IPV6_ROUTER_ALERT_ISOLATE from Linux 5.1 to bits/in.h. 2019-06-13 16:08:20 +00:00
initspin.h
inotify.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
ioctl-types.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
ioctls.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
ipc.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
local_lim.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
mman-linux.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
mman-map-flags-generic.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
mman-shared.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
mman.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
mqueue.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
msq-pad.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
msq.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
param.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
poll.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
posix_opt.h manual: Document lack of conformance of sched_* functions [BZ #14829] 2019-02-02 14:15:27 +01:00
procfs-extra.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
procfs-id.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
procfs-prregset.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
procfs.h Unify some sys/procfs.h headers. 2018-09-25 16:48:15 +00:00
ptrace-shared.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
resource.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
sched.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
sem-pad.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
sem.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
shm-pad.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
shm.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
shmlba.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
sigaction.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
sigcontext.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
sigevent-consts.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
siginfo-arch.h
siginfo-consts-arch.h
siginfo-consts.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
signal_ext.h Linux: Add the tgkill function 2019-05-14 22:55:51 +02:00
signalfd.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
signum.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
sigstack.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
socket-constants.h Linux: Use in-tree copy of SO_ constants for !__USE_MISC [BZ #24532] 2019-07-24 10:59:34 +02:00
socket.h Linux: Use in-tree copy of SO_ constants for !__USE_MISC [BZ #24532] 2019-07-24 10:59:34 +02:00
socket_type.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
ss_flags.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
stat.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
statfs.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
statvfs.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
statx.h Don't use a custom wrapper macro around __has_include (bug 25189). 2019-11-22 13:09:01 +01:00
sys_errlist.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
sysctl.h
termios-baud.h termios: Consolidate Baud Rate Selection definitions (BZ#23783) 2019-01-03 09:32:12 -02:00
termios-c_cc.h termios: Consolidate termios c_cc symbolic constants 2019-01-03 09:32:12 -02:00
termios-c_cflag.h termios: Consolidate control mode definitions 2019-01-03 09:32:12 -02:00
termios-c_iflag.h termios: Consolidate Input Modes definitions. 2019-01-03 09:32:12 -02:00
termios-c_lflag.h termios: Consolidate local mode definitions 2019-01-03 09:32:12 -02:00
termios-c_oflag.h termios: Consolidate Output Modes definitions 2019-01-03 09:32:12 -02:00
termios-misc.h termios: Consolidate termios.h 2019-01-03 09:32:12 -02:00
termios-struct.h termios: Consolidate struct termios 2019-01-03 09:32:12 -02:00
termios-tcflow.h termios: Consolidate tcflow symbolic constants 2019-01-03 09:32:12 -02:00
termios.h termios: Consolidate termios.h 2019-01-03 09:32:12 -02:00
time.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
timerfd.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
timex.h Break further lines before not after operators. 2019-02-26 15:01:50 +00:00
uio-ext.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
uio_lim.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
unistd_ext.h Linux: Move getdents64 to <dirent.h> 2019-07-29 21:02:46 +02:00
utsname.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
waitflags.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00