diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-06-26 19:22:21 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-06-26 19:22:21 +0000 |
commit | 493da6bfa8b587cdc34f8d87e448112fac0768a4 (patch) | |
tree | a2e267d5c17cd0eb2d4df00b0e65c2ad68c5ec88 | |
parent | 637f649b594579ff5e2b831cc999cfb57b161eb5 (diff) | |
download | px4-nuttx-493da6bfa8b587cdc34f8d87e448112fac0768a4.tar.gz px4-nuttx-493da6bfa8b587cdc34f8d87e448112fac0768a4.tar.bz2 px4-nuttx-493da6bfa8b587cdc34f8d87e448112fac0768a4.zip |
Fixes for clean ez80 compilation
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1965 42af7a65-404d-4744-a932-0658087f49c3
-rw-r--r-- | nuttx/include/debug.h | 3 | ||||
-rw-r--r-- | nuttx/lib/lib_dumpbuffer.c | 19 | ||||
-rw-r--r-- | nuttx/netutils/webclient/webclient.c | 1 |
3 files changed, 17 insertions, 6 deletions
diff --git a/nuttx/include/debug.h b/nuttx/include/debug.h index 485bf8a20..e0caefeeb 100644 --- a/nuttx/include/debug.h +++ b/nuttx/include/debug.h @@ -42,6 +42,7 @@ #include <nuttx/config.h> #include <nuttx/compiler.h> +#include <sys/types.h> /**************************************************************************** * Definitions @@ -436,7 +437,7 @@ EXTERN int lib_lowprintf(const char *format, ...); /* Dump a buffer of data */ -EXTERN int lib_dumpbuffer(FAR const char *msg, FAR const ubyte *buffer, unsigned int buflen); +EXTERN void lib_dumpbuffer(FAR const char *msg, FAR const ubyte *buffer, unsigned int buflen); /* If the cross-compiler's pre-processor does not support variable * length arguments, then these additional APIs will be built. diff --git a/nuttx/lib/lib_dumpbuffer.c b/nuttx/lib/lib_dumpbuffer.c index b11ebbedc..a090bcb61 100644 --- a/nuttx/lib/lib_dumpbuffer.c +++ b/nuttx/lib/lib_dumpbuffer.c @@ -42,6 +42,7 @@ ****************************************************************************/ #include <nuttx/config.h> +#include <nuttx/compiler.h> #include <sys/types.h> #include <debug.h> @@ -51,11 +52,19 @@ /* Select the lowest level debug interface available */ -# ifdef CONFIG_ARCH_LOWPUTC -# define message(format, arg...) lib_lowprintf(format, ##arg) +#ifdef CONFIG_CPP_HAVE_VARARGS +# ifdef CONFIG_ARCH_LOWPUTC +# define message(format, arg...) lib_lowprintf(format, ##arg) +# else +# define message(format, arg...) lib_rawprintf(format, ##arg) +# endif #else -# define message(format, arg...) lib_rawprintf(format, ##arg) -# endif +# ifdef CONFIG_ARCH_LOWPUTC +# define message lib_lowprintf +# else +# define message lib_rawprintf +# endif +#endif /**************************************************************************** * Public Functions @@ -69,7 +78,7 @@ * ****************************************************************************/ -int lib_dumpbuffer(FAR const char *msg, FAR const ubyte *buffer, unsigned int buflen) +void lib_dumpbuffer(FAR const char *msg, FAR const ubyte *buffer, unsigned int buflen) { int i, j, k; diff --git a/nuttx/netutils/webclient/webclient.c b/nuttx/netutils/webclient/webclient.c index 3c31e6ad2..c939108ee 100644 --- a/nuttx/netutils/webclient/webclient.c +++ b/nuttx/netutils/webclient/webclient.c @@ -66,6 +66,7 @@ # include <net/uip/resolv.h> #endif +#include <arpa/inet.h> #include <netinet/in.h> #include <net/uip/uip-lib.h> #include <net/uip/webclient.h> |