Our prebuilt host glibc is new enough to remove a workaround.

Bug: N/A
Test: builds
Change-Id: Ib91a106ddc15aa93f0dc3c85bc1a17eaeb49ab0f
This commit is contained in:
Elliott Hughes 2018-08-01 12:26:17 -07:00
parent b0c8a01de1
commit b652e9ab4d
1 changed files with 0 additions and 13 deletions

View File

@ -19,20 +19,7 @@
#include <gtest/gtest.h> #include <gtest/gtest.h>
#if defined(__BIONIC__) // Android's prebuilt gcc's header files don't include <sys/eventfd.h>.
#include <sys/eventfd.h> #include <sys/eventfd.h>
#else
// Include the necessary components of sys/eventfd.h right here.
#include <stdint.h>
typedef uint64_t eventfd_t;
__BEGIN_DECLS
extern int eventfd(int, int);
extern int eventfd_read(int, eventfd_t*);
extern int eventfd_write(int, eventfd_t);
__END_DECLS
#endif
TEST(eventfd, smoke) { TEST(eventfd, smoke) {
unsigned int initial_value = 2; unsigned int initial_value = 2;