]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android-sdk/platform-bionic.git/commit
Prevent name conflict for eventfd.cpp and eventfd.s when building libc.a
authorKito Cheng <kito@0xlab.org>
Wed, 3 Apr 2013 03:29:40 +0000 (11:29 +0800)
committerElliott Hughes <enh@google.com>
Wed, 3 Apr 2013 18:10:37 +0000 (11:10 -0700)
commit8baa929d5d3bcf63381cf78ba76168c80c303f5e
treebc27560e5930aa49b4f8c0f1db7f9368ed126134
parent14c840df90bb4fc9935f7e24350e3269b6bd7f17
Prevent name conflict for eventfd.cpp and eventfd.s when building libc.a

 - eventfd.cpp and eventfd.s will output to the same file when building libc.a
   out/target/product/*/obj/STATIC_LIBRARIES/libc_intermediates/WHOLE/libc_common_objs/eventfd.o
 - And then `eventfd` will undefined when statically linked to libc.

Also add a unit test.

Change-Id: Ib310ade3256712ca617a90539e8eb07459c98505
libc/Android.mk
libc/bionic/eventfd_read.cpp [moved from libc/bionic/eventfd.cpp with 75% similarity]
libc/bionic/eventfd_write.cpp [new file with mode: 0644]
libc/include/sys/eventfd.h
tests/Android.mk
tests/eventfd_test.cpp [new file with mode: 0644]