Cygwin doesn't support the clone() syscall [1].
Users must explicitly set the LTTNG_DEBUG_NOCLONE environment variable.
[1] - http://cygwin.com/ml/cygwin/2009-05/msg00172.html
Signed-off-by: Christian Babeux <christian.babeux@efficios.com>
}
}
+#elif defined(__CYGWIN__)
+#warning "Cygwin doesn't support the clone() syscall. You must set the LTTNG_DEBUG_NOCLONE=1 before starting lttng-sessiond"
+#include <assert.h>
+
+static inline
+pid_t lttng_clone_files(int (*fn)(void *), void *child_stack, void *arg)
+{
+ assert(NULL);
+ return -1;
+}
+
#else
#error "Please add support for your OS."
-#endif /* __linux__ , __FreeBSD__ */
+#endif /* __linux__ , __FreeBSD__, __CYGWIN__ */
#endif /* _COMPAT_CLONE_H */