Skip to content

Commit 2447980

Browse files
committed
tests/rename: fix the test when building inside source directory
Explicitly include hwloc/autogen/config.h so that we get our modified one with renaming enabled, instead of getting the normal one through hwloc.h later (and a conflict because renaming isn't enabled there). Signed-off-by: Brice Goglin <[email protected]>
1 parent b2b628f commit 2447980

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/hwloc/rename/main.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77

88
/* all headers should be explicitly included */
99

10-
#include "private/autogen/config.h" /* autoheaders definitions first, to avoid conflicts later */
10+
/* autoheaders definitions first, to avoid conflicts later */
11+
#include "private/autogen/config.h"
12+
#include "hwloc/autogen/config.h"
1113

1214
#include "hwloc.h" /* hwloc/rename.h required before everything else */
1315
#include "hwloc/bitmap.h"

0 commit comments

Comments
 (0)