From 46c97aee24af52a0ec2e1857a57a79815a534668 Mon Sep 17 00:00:00 2001 From: Jonathan Rajotte Date: Tue, 21 Jul 2020 11:00:40 -0400 Subject: [PATCH] Fix: use sys/types.h for ssize_t on Cygwin MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Observed issue ============== On cygwin worker: In file included from snapshot.c:10: ../../src/common/snapshot.h:33:1: error: unknown type name `ssize_t`; did you mean `_ssize_t`? 33 | ssize_t lttng_snapshot_output_create_from_buffer( | ^~~~~~~ | _ssize_t snapshot.c:128:9: error: conflicting types for `lttng_snapshot_output_create_from_buffer` 128 | ssize_t lttng_snapshot_output_create_from_buffer( | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from snapshot.c:10: ../../src/common/snapshot.h:33:9: note: previous declaration of `lttng_snapshot_output_create_from_buffer` was here 33 | ssize_t lttng_snapshot_output_create_from_buffer( | Solution ======== Include sys/types.h. Signed-off-by: Jonathan Rajotte Signed-off-by: Jérémie Galarneau Change-Id: I1df58ffb6df02d6957e1e4eac6ebfb297f3e3bb0 --- src/common/snapshot.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/common/snapshot.h b/src/common/snapshot.h index 58e855767..df02adaf9 100644 --- a/src/common/snapshot.h +++ b/src/common/snapshot.h @@ -11,6 +11,7 @@ #include #include +#include struct lttng_payload_view; struct lttng_payload; -- 2.34.1