diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-09-21 00:37:49 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-09-21 00:37:49 +0000 |
commit | 455cada949fd3d9e88144d2666650b5312eae175 (patch) | |
tree | d1bdd6570868143f4a3b16b98ddb729b1c6c3fcc /nuttx/examples | |
parent | 42e211ec796561123142ad4065e80c1cbf89a0f1 (diff) | |
download | px4-nuttx-455cada949fd3d9e88144d2666650b5312eae175.tar.gz px4-nuttx-455cada949fd3d9e88144d2666650b5312eae175.tar.bz2 px4-nuttx-455cada949fd3d9e88144d2666650b5312eae175.zip |
If toolchain doesn't have weak symbols, must provide user_initialize()
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@349 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/examples')
-rw-r--r-- | nuttx/examples/uip/main.c | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/nuttx/examples/uip/main.c b/nuttx/examples/uip/main.c index 396200069..6bc6418bf 100644 --- a/nuttx/examples/uip/main.c +++ b/nuttx/examples/uip/main.c @@ -70,7 +70,24 @@ # include <net/uip/webclient.h> #endif -int user_start(int argc, char *argv[]) +/************************************************************ + * user_initialize + ************************************************************/ + +#ifndef CONFIG_HAVE_WEAKFUNCTIONS +void user_initialize(void) +{ + /* Stub that must be provided only if the toolchain does + * not support weak functions. + */ +} +#endif + +/************************************************************ + * user_start + ************************************************************/ + + int user_start(int argc, char *argv[]) { struct in_addr addr; uip_ipaddr_t ipaddr; |