From 7a9aeea1c36612aa7b95a70379e227002407fd9b Mon Sep 17 00:00:00 2001 From: Philip Pronin Date: Fri, 8 Jun 2012 01:37:24 -0700 Subject: [PATCH] folly::detail::futex should be inline Summary: It breaks build. Test Plan: will check *_try builds Reviewed By: andrei.alexandrescu@fb.com FB internal diff: D489935 --- folly/experimental/EventCount.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/folly/experimental/EventCount.h b/folly/experimental/EventCount.h index e03571d1..df148648 100644 --- a/folly/experimental/EventCount.h +++ b/folly/experimental/EventCount.h @@ -29,8 +29,8 @@ namespace folly { namespace detail { -int futex(int* uaddr, int op, int val, const struct timespec* timeout, - int* uaddr2, int val3) noexcept { +inline int futex(int* uaddr, int op, int val, const timespec* timeout, + int* uaddr2, int val3) noexcept { return syscall(SYS_futex, uaddr, op, val, timeout, uaddr2, val3); } -- 2.34.1