aboutsummaryrefslogtreecommitdiff
path: root/libXpm/src/RdFToI.c
diff options
context:
space:
mode:
Diffstat (limited to 'libXpm/src/RdFToI.c')
-rw-r--r--libXpm/src/RdFToI.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libXpm/src/RdFToI.c b/libXpm/src/RdFToI.c
index bd09611b1..49fb2ed61 100644
--- a/libXpm/src/RdFToI.c
+++ b/libXpm/src/RdFToI.c
@@ -43,6 +43,7 @@
#include <errno.h>
#include <sys/types.h>
#include <sys/wait.h>
+typedef int pid_t;
#else
#ifdef FOR_MSW
#include <fcntl.h>
@@ -246,7 +247,7 @@ OpenReadFile(
#endif /* z-files */
{
mdata->type = XPMFILE;
- mdata->stream.file = fdopen(fd, "r");
+ mdata->stream.file = _fdopen(fd, "r");
}
if (!mdata->stream.file)
{