summaryrefslogtreecommitdiff
path: root/x2p
diff options
context:
space:
mode:
Diffstat (limited to 'x2p')
-rw-r--r--x2p/a2py.c3
-rw-r--r--x2p/util.c2
2 files changed, 5 insertions, 0 deletions
diff --git a/x2p/a2py.c b/x2p/a2py.c
index fefa81da7e..a4753ab864 100644
--- a/x2p/a2py.c
+++ b/x2p/a2py.c
@@ -9,6 +9,9 @@
*/
#if defined(OS2) || defined(WIN32)
+#if defined(WIN32)
+#include <io.h>
+#endif
#include "../patchlevel.h"
#endif
#include "util.h"
diff --git a/x2p/util.c b/x2p/util.c
index 3d3b99a952..e2b8bba862 100644
--- a/x2p/util.c
+++ b/x2p/util.c
@@ -42,6 +42,7 @@ safemalloc(size_t size)
exit(1);
}
/*NOTREACHED*/
+ return 0;
}
/* paranoid version of realloc */
@@ -66,6 +67,7 @@ saferealloc(void *where, size_t size)
exit(1);
}
/*NOTREACHED*/
+ return 0;
}
/* safe version of free */