mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-16 14:08:46 +08:00
examples/null/null_main.c: Need to include config.h it order know if this is or is not a kernel build
This commit is contained in:
@@ -37,6 +37,8 @@
|
||||
* Included Files
|
||||
****************************************************************************/
|
||||
|
||||
#include <nuttx/config.h>
|
||||
|
||||
/****************************************************************************
|
||||
* Definitions
|
||||
****************************************************************************/
|
||||
@@ -62,7 +64,7 @@
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_BUILD_KERNEL
|
||||
int main(int argc, FAR char *argv[])
|
||||
int main(int argc, char *argv[])
|
||||
#else
|
||||
int null_main(int argc, char *argv[])
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user