This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push: new 486dabdd2d include/nuttx/can.h: remove dependency on CONFIG_NET_CAN 486dabdd2d is described below commit 486dabdd2dde94d879cb58e2393f8850b47c3b2e Author: raiden00pl <raide...@railab.me> AuthorDate: Tue May 13 17:11:01 2025 +0200 include/nuttx/can.h: remove dependency on CONFIG_NET_CAN Remove dependency on CONFIG_NET_CAN for socketCAN definitions. Definitions from this file are also used by arch/sim CAN implementation, which is based on a host socketCAN interface. With this change CONFIG_NET and CONFIG_NET_CAN don't need to be enabled to support CAN character driver on sim. Signed-off-by: raiden00pl <raide...@railab.me> --- include/nuttx/can.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/include/nuttx/can.h b/include/nuttx/can.h index 3803f10598..1b2f11e5b2 100644 --- a/include/nuttx/can.h +++ b/include/nuttx/can.h @@ -33,8 +33,6 @@ #include <sys/socket.h> #include <stdint.h> -#ifdef CONFIG_NET_CAN - /**************************************************************************** * Pre-processor Definitions ****************************************************************************/ @@ -383,5 +381,4 @@ extern "C" } #endif -#endif /* CONFIG_CAN */ #endif /* __INCLUDE_NUTTX_CAN_H */