From: Mathieu Desnoyers Date: Thu, 24 May 2012 14:12:21 +0000 (-0400) Subject: Add cygwin support to libringbuffer getcpu.h X-Git-Tag: v2.1.0-rc1~80 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=4327cb7d2c9f34fc8d01f8ed92e2a43de7ef14f6;p=lttng-ust.git Add cygwin support to libringbuffer getcpu.h Signed-off-by: Mathieu Desnoyers --- diff --git a/libringbuffer/getcpu.h b/libringbuffer/getcpu.h index dbc186c1..190eae6c 100644 --- a/libringbuffer/getcpu.h +++ b/libringbuffer/getcpu.h @@ -78,11 +78,11 @@ int lttng_ust_get_cpu(void) } #endif /* __UCLIBC__ */ -#elif defined(__FreeBSD__) +#elif (defined(__FreeBSD__) || defined(__CYGWIN__)) /* - * FreeBSD does not allow query of CPU ID. Always use CPU number 0, with - * the assocated performance degradation on SMP. + * FreeBSD and Cygwin do not allow query of CPU ID. Always use CPU + * number 0, with the assocated performance degradation on SMP. */ static inline int lttng_ust_get_cpu(void)