From: Simon Marchi Date: Fri, 12 Aug 2022 00:56:12 +0000 (-0400) Subject: Fix: compat: include common/macros.h in mman.h X-Git-Url: https://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=44b756ef7c0a8da1e25d21f629f3a768d65a1e81 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 --- 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