Fix: compat: include common/macros.h in mman.h
authorSimon Marchi <simon.marchi@efficios.com>
Fri, 12 Aug 2022 00:56:12 +0000 (20:56 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Fri, 19 Aug 2022 15:44:44 +0000 (11:44 -0400)
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 <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8661
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Tested-by: jenkins <jenkins@lttng.org>
src/compat/mman.h

index a9568c6bc99729ddf831a20660ba24777beea2b4..0053e3071cf7dbcdeb8512eddd821a26827b042d 100644 (file)
@@ -10,6 +10,7 @@
 #ifdef __MINGW32__
 
 #include <sys/types.h>
+#include "common/macros.h"
 
 #define PROT_NONE      0x0
 #define PROT_READ      0x1
This page took 0.039531 seconds and 4 git commands to generate.