ptrace on Darwin requires <sys/types.h>.
The inline x86 asm doesn't work with the Solaris assembler.
libstdc++-v3/ChangeLog:
* src/c++26/debugging.cc [_GLIBCXX_HAVE_SYS_PTRACE_H]: Include
<sys/types.h>.
(breakpoint) [__i386__ || __x86_64__]: Use "int 0x03" instead of
"int3".
#endif
#if _GLIBCXX_HAVE_SYS_PTRACE_H
+# include <sys/types.h> // for darwin ptrace
# include <sys/ptrace.h>
# include <errno.h>
#endif
__builtin_debugtrap(); // Clang
#elif defined(__i386__) || defined(__x86_64__)
// nop is for GDB, see https://sourceware.org/bugzilla/show_bug.cgi?id=31194
- __asm__ volatile ("int3\n\tnop");
+ __asm__ volatile ("int $0x3\n\tnop");
#elifdef __thumb__
__asm__ volatile (".inst 0xde01");
#elifdef __aarch64__