From 30ad7775383e83a42a93e3659454bb361766ea99 Mon Sep 17 00:00:00 2001 From: patacongo Date: Fri, 21 Sep 2007 00:37:49 +0000 Subject: [PATCH] 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 --- examples/uip/main.c | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/examples/uip/main.c b/examples/uip/main.c index 39620006901..6bc6418bff8 100644 --- a/examples/uip/main.c +++ b/examples/uip/main.c @@ -70,7 +70,24 @@ # include #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;