am 192e169a
: Merge "x86 has an assembler bcopy implementation."
* commit '192e169a404fee48483335ed988788924266ff5d': x86 has an assembler bcopy implementation.
This commit is contained in:
commit
ca3396ef2d
@ -235,11 +235,15 @@ extern "C" sighandler_t bsd_signal(int signum, sighandler_t handler) {
|
||||
return signal(signum, handler);
|
||||
}
|
||||
|
||||
#if !defined(__i386__)
|
||||
// This was removed from POSIX 2008.
|
||||
#undef bcopy
|
||||
extern "C" void bcopy(const void* src, void* dst, size_t n) {
|
||||
memcpy(dst, src, n);
|
||||
}
|
||||
#else
|
||||
// x86 has an assembler implementation.
|
||||
#endif
|
||||
|
||||
// sysv_signal() was never in POSIX.
|
||||
extern sighandler_t _signal(int signum, sighandler_t handler, int flags);
|
||||
|
Loading…
Reference in New Issue
Block a user