https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99995

--- Comment #10 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Jonathan Wakely from comment #9)
> (In reply to Jonathan Wakely from comment #0)
> > In C++20 mode <memory> includes <bits/atomic_wait.h> which includes
> > <unistd.h> for SYS_futex,
> 
> We should use <sys/syscall.h> for that instead, which would improve things
> somewhat.

That doesn't help because we still need unistd.h for the actual
syscall(long,...) declaration. sys/syscall.h only declares the syscall numbers
like SYS_futex.
  • [Bug libstdc++/99995] [12/13/14... redi at gcc dot gnu.org via Gcc-bugs

Reply via email to