OSDN Git Service
(root)
/
android-x86
/
bionic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c7964c
)
x86 has an assembler bcopy implementation.
author
Elliott Hughes
<enh@google.com>
Tue, 27 Jan 2015 05:45:56 +0000
(21:45 -0800)
committer
Elliott Hughes
<enh@google.com>
Tue, 27 Jan 2015 05:45:56 +0000
(21:45 -0800)
Change-Id: I4ed7af3c5b104f86550120401f773150c460f37b
libc/bionic/ndk_cruft.cpp
patch
|
blob
|
history
diff --git
a/libc/bionic/ndk_cruft.cpp
b/libc/bionic/ndk_cruft.cpp
index
341ba01
..
28d6355
100644
(file)
--- a/
libc/bionic/ndk_cruft.cpp
+++ b/
libc/bionic/ndk_cruft.cpp
@@
-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);