From 44b756ef7c0a8da1e25d21f629f3a768d65a1e81 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Thu, 11 Aug 2022 20:56:12 -0400 Subject: [PATCH] Fix: compat: include common/macros.h in mman.h When building on Windows, this mman.h must include common/macros.h to see the definition of BT_EXTERN_C. The build works in current master, but I got some build failures that uncovered this problem which working on some unrelated changes. Change-Id: Ia81714d6d278724a0bc1fd20817e675f0167f2a1 Signed-off-by: Simon Marchi Reviewed-on: https://review.lttng.org/c/babeltrace/+/8661 Reviewed-by: Philippe Proulx Tested-by: jenkins --- src/compat/mman.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/compat/mman.h b/src/compat/mman.h index a9568c6b..0053e307 100644 --- a/src/compat/mman.h +++ b/src/compat/mman.h @@ -10,6 +10,7 @@ #ifdef __MINGW32__ #include +#include "common/macros.h" #define PROT_NONE 0x0 #define PROT_READ 0x1 -- 2.34.1