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:
Gregory Nutt 2014-09-16 13:23:58 -06:00
parent 2e027d27ee
commit 84c649af2b

View File

@ -37,6 +37,8 @@
* Included Files * Included Files
****************************************************************************/ ****************************************************************************/
#include <nuttx/config.h>
/**************************************************************************** /****************************************************************************
* Definitions * Definitions
****************************************************************************/ ****************************************************************************/
@ -62,7 +64,7 @@
****************************************************************************/ ****************************************************************************/
#ifdef CONFIG_BUILD_KERNEL #ifdef CONFIG_BUILD_KERNEL
int main(int argc, FAR char *argv[]) int main(int argc, char *argv[])
#else #else
int null_main(int argc, char *argv[]) int null_main(int argc, char *argv[])
#endif #endif