diff options
Diffstat (limited to 'drivers/cc3000/src')
| -rw-r--r-- | drivers/cc3000/src/inet_ntop.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/cc3000/src/inet_ntop.c b/drivers/cc3000/src/inet_ntop.c index c03ac44cd..83242efa0 100644 --- a/drivers/cc3000/src/inet_ntop.c +++ b/drivers/cc3000/src/inet_ntop.c @@ -15,12 +15,16 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include <std.h> #include <string.h> #include "cc3000_common.h" #include "socket.h" #include "inet_ntop.h" +// We can't include stdio.h because it defines _types_fd_set, but we +// need to use the CC3000 version of this type. So we must provide +// our own declaration of snprintf. Grrr. +int snprintf(char *str, size_t size, const char *fmt, ...); + #define IN6ADDRSZ 16 #define INADDRSZ 4 #define INT16SZ 2 |
