From 4b36962fa59dfb5bcfcb52d2f07f7eb3b8dc1669 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 commit 4327cb7d2c9f34fc8d01f8ed92e2a43de7ef14f6 upstream. Signed-off-by: Mathieu Desnoyers Signed-off-by: Christian Babeux --- libringbuffer/getcpu.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libringbuffer/getcpu.h b/libringbuffer/getcpu.h index 0a619417..3f125197 100644 --- a/libringbuffer/getcpu.h +++ b/libringbuffer/getcpu.h @@ -75,11 +75,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