about summary refs log tree commit diff
path: root/libio/bug-ftell.c
diff options
context:
space:
mode:
Diffstat (limited to 'libio/bug-ftell.c')
-rw-r--r--libio/bug-ftell.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libio/bug-ftell.c b/libio/bug-ftell.c
index f7a9a776a2..7eb0f46810 100644
--- a/libio/bug-ftell.c
+++ b/libio/bug-ftell.c
@@ -1,6 +1,7 @@
 #include <locale.h>
 #include <stdio.h>
 #include <wchar.h>
+#include <sys/types.h>
 
 
 static int
@@ -27,7 +28,7 @@ do_test (void)
 
   rewind (fp);
 
-  wchar_t *cp;
+  const wchar_t *cp;
   unsigned int cnt;
   for (cp = L"hello", cnt = 1; *cp != L'\0'; ++cp, ++cnt)
     {