summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mdk-stage1/dietlibc/lib/ttyname.c1
-rw-r--r--mdk-stage1/dietlibc/lib/vsscanf.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/mdk-stage1/dietlibc/lib/ttyname.c b/mdk-stage1/dietlibc/lib/ttyname.c
index a6b479088..81a0cbc66 100644
--- a/mdk-stage1/dietlibc/lib/ttyname.c
+++ b/mdk-stage1/dietlibc/lib/ttyname.c
@@ -1,6 +1,7 @@
#include "dietfeatures.h"
#include <unistd.h>
#include <sys/stat.h>
+#include <string.h>
#ifdef __linux__
diff --git a/mdk-stage1/dietlibc/lib/vsscanf.c b/mdk-stage1/dietlibc/lib/vsscanf.c
index e370062e7..a646ad92d 100644
--- a/mdk-stage1/dietlibc/lib/vsscanf.c
+++ b/mdk-stage1/dietlibc/lib/vsscanf.c
@@ -22,9 +22,11 @@ int vsscanf(const char *str, const char *format, va_list arg_ptr)
unsigned long width;
+#ifdef WANT_FLOATING_POINT_IN_SCANF
/* arg_ptr tmps */
double d,*pd;
float *pf;
+#endif
long l=0,*pl;
short *ph;