about summary refs log tree commit diff
path: root/sysdeps/generic/sysd-stdio.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/generic/sysd-stdio.c')
-rw-r--r--sysdeps/generic/sysd-stdio.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sysdeps/generic/sysd-stdio.c b/sysdeps/generic/sysd-stdio.c
index 363a763449..f5147bb3aa 100644
--- a/sysdeps/generic/sysd-stdio.c
+++ b/sysdeps/generic/sysd-stdio.c
@@ -16,6 +16,7 @@
    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.  */
 
+#include <errno.h>
 #include <stddef.h>
 #include <stdio.h>
 #include <stdlib.h>
@@ -155,7 +156,7 @@ __stdio_open (filename, m, cookieptr)
   if (fd < 0)
     return -1;
 
-  *cookieptr = (PTR) fd;
+  *cookieptr = (void *) fd;
   return 0;
 }