Skip to content

Commit

Permalink
Fix -Wundef error in SystemLayerImplSelect.h (#30402)
Browse files Browse the repository at this point in the history
src/system/SystemLayerImplSelect.h:29:5: error: 'CHIP_SYSTEM_CONFIG_USE_POSIX_SOCKETS' is not defined, evaluates to 0 [-Werror,-Wundef]

Include the header that defines this macro.
  • Loading branch information
mspang authored Nov 10, 2023
1 parent df1fc25 commit 08bcb56
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/system/SystemLayerImplSelect.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@

#pragma once

#include "system/SystemConfig.h"

#if CHIP_SYSTEM_CONFIG_USE_POSIX_SOCKETS
#include <sys/select.h>
#endif
Expand Down

0 comments on commit 08bcb56

Please sign in to comment.