summaryrefslogtreecommitdiff
path: root/drivers/cc3000/src
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-04-18 14:28:39 +0100
committerDamien George <damien.p.george@gmail.com>2015-04-18 14:28:39 +0100
commit2764a8ee8d507ee31c1ceab213fcfcbd1bbb37a6 (patch)
tree90c81ea2c90e556f2080a0167a040dffb6c8a007 /drivers/cc3000/src
parentf53a8e712f6b38f15be81cb692c03c1afacce7ae (diff)
stmhal: Remove std.h. It's not needed anymore.
Diffstat (limited to 'drivers/cc3000/src')
-rw-r--r--drivers/cc3000/src/inet_ntop.c6
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