glibc/sysdeps/unix/sysv/linux/bits
Emilio Cobos Álvarez bfa864e164 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
2019-11-21 17:54:16 +01:00
..
types Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
a.out.h Update. 2003-07-25 09:06:04 +00:00
dirent_ext.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
dirent.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
epoll.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
errno.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
eventfd.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
fcntl-linux.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
fcntl.h Update. 2000-09-01 07:14:30 +00:00
in.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
initspin.h Update. 2000-10-15 06:50:42 +00:00
inotify.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
ioctl-types.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
ioctls.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
ipc-perm.h sysvipc: Set ipc_perm mode as mode_t (BZ#18231) 2019-10-10 17:33:27 -03:00
ipc.h sysvipc: Set ipc_perm mode as mode_t (BZ#18231) 2019-10-10 17:33:27 -03:00
local_lim.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
mman-linux.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
mman-map-flags-generic.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
mman-shared.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
mman.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
mqueue.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
msq-pad.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
msq.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
param.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
poll.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
posix_opt.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
procfs-extra.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
procfs-id.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
procfs-prregset.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
procfs.h Unify some sys/procfs.h headers. 2018-09-25 16:48:15 +00:00
ptrace-shared.h Add PTRACE_GET_SYSCALL_INFO from Linux 5.3 to sys/ptrace.h. 2019-10-14 23:43:52 +00:00
resource.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
sched.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
sem-pad.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
sem.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
shm-pad.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
shm.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
shmlba.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
sigaction.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
sigcontext.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
sigevent-consts.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
siginfo-arch.h Remove __need macros from signal.h. 2017-05-20 19:04:43 -04:00
siginfo-consts-arch.h Remove __need macros from signal.h. 2017-05-20 19:04:43 -04:00
siginfo-consts.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
signal_ext.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
signalfd.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
signum.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
sigstack.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
socket_type.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
socket-constants.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
socket.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
ss_flags.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
stat.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
statfs.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
statvfs.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
statx.h Don't use a custom wrapper macro around __has_include (bug 25189). 2019-11-21 17:54:16 +01:00
sys_errlist.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
sysctl.h Add sysctl.mk and bits/sysctl.h 2012-05-22 13:46:29 -07:00
termios-baud.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
termios-c_cc.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
termios-c_cflag.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
termios-c_iflag.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
termios-c_lflag.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
termios-c_oflag.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
termios-misc.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
termios-struct.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
termios-tcflow.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
termios.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
time.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
timerfd.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
timex.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
uio_lim.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
uio-ext.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
unistd_ext.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
utsname.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
waitflags.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00