From 4327cb7d2c9f34fc8d01f8ed92e2a43de7ef14f6 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Thu, 24 May 2012 10:12:21 -0400 Subject: [PATCH] Add cygwin support to libringbuffer getcpu.h Signed-off-by: Mathieu Desnoyers --- libringbuffer/getcpu.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) -- 2.34.1