Skip to content

Commit

Permalink
Fix CHIPConfig.h not including InetConfig.h.
Browse files Browse the repository at this point in the history
We had various things that were testing config bits that InetConfig.h would pull
in that never actually included InetConfig.h, because CHIPConfig.h did not
include it.
  • Loading branch information
bzbarsky-apple committed Sep 13, 2023
1 parent b02c984 commit 80ff286
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/lib/core/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ source_set("chip_config_header") {
public_deps = [
":chip_buildconfig",
"${chip_root}/src/ble:ble_config_header",
"${chip_root}/src/inet:inet_config_header",
"${chip_root}/src/system:system_config_header",
]

Expand Down
4 changes: 2 additions & 2 deletions src/lib/core/CHIPConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
#include <ble/BleConfig.h>
#include <system/SystemConfig.h>

/* COMING SOON: making the INET Layer optional entails making this inclusion optional. */
// #include "InetConfig.h"
#include <inet/InetConfig.h>

/*
#if INET_CONFIG_ENABLE_TCP_ENDPOINT && INET_TCP_IDLE_CHECK_INTERVAL <= 0
#error "chip SDK requires INET_TCP_IDLE_CHECK_INTERVAL > 0"
Expand Down

0 comments on commit 80ff286

Please sign in to comment.