From: Philip Pronin Date: Fri, 8 Jun 2012 08:37:24 +0000 (-0700) Subject: folly::detail::futex should be inline X-Git-Tag: v0.22.0~1276 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=7a9aeea1c36612aa7b95a70379e227002407fd9b;p=folly.git 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 --- 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); }