From: Mathieu Desnoyers Date: Thu, 24 May 2012 14:12:21 +0000 (-0400) Subject: Add cygwin support to libringbuffer getcpu.h X-Git-Url: http://git.lttng.org/?p=lttng-ust.git;a=commitdiff_plain;h=4b36962fa59dfb5bcfcb52d2f07f7eb3b8dc1669 Add cygwin support to libringbuffer getcpu.h commit 4327cb7d2c9f34fc8d01f8ed92e2a43de7ef14f6 upstream. Signed-off-by: Mathieu Desnoyers Signed-off-by: Christian Babeux --- 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)