diff options
Diffstat (limited to 'apps/examples/can')
-rw-r--r-- | apps/examples/can/can_main.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/examples/can/can_main.c b/apps/examples/can/can_main.c index b3dd5aa48..63009f8aa 100644 --- a/apps/examples/can/can_main.c +++ b/apps/examples/can/can_main.c @@ -104,7 +104,11 @@ * Name: can_main ****************************************************************************/ +#ifdef CONFIG_BUILD_KERNEL +int main(int argc, FAR char **argv) +#else int can_main(int argc, char *argv[]) +#endif { #ifndef CONFIG_EXAMPLES_CAN_READONLY struct can_msg_s txmsg; |