summaryrefslogtreecommitdiff
path: root/w32
diff options
context:
space:
mode:
Diffstat (limited to 'w32')
-rw-r--r--w32/compat/dirent.c3
-rw-r--r--w32/pathstuff.c2
-rw-r--r--w32/subproc/misc.c3
-rw-r--r--w32/subproc/sub_proc.c8
4 files changed, 11 insertions, 5 deletions
diff --git a/w32/compat/dirent.c b/w32/compat/dirent.c
index ea1259c..8d66e47 100644
--- a/w32/compat/dirent.c
+++ b/w32/compat/dirent.c
@@ -16,6 +16,7 @@ You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>. */
+#include <config.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <errno.h>
@@ -132,7 +133,7 @@ readdir(DIR* pDir)
pDir->dir_nNumFiles++;
/* fill in struct dirent values */
- pDir->dir_sdReturn.d_ino = -1;
+ pDir->dir_sdReturn.d_ino = (ino_t)-1;
strcpy(pDir->dir_sdReturn.d_name, wfdFindData.cFileName);
return &pDir->dir_sdReturn;
diff --git a/w32/pathstuff.c b/w32/pathstuff.c
index 91ae1fb..1f8269e 100644
--- a/w32/pathstuff.c
+++ b/w32/pathstuff.c
@@ -15,9 +15,9 @@ A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>. */
+#include "make.h"
#include <string.h>
#include <stdlib.h>
-#include "make.h"
#include "pathstuff.h"
/*
diff --git a/w32/subproc/misc.c b/w32/subproc/misc.c
index 298db48..6759c17 100644
--- a/w32/subproc/misc.c
+++ b/w32/subproc/misc.c
@@ -15,6 +15,7 @@ A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>. */
+#include <config.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
@@ -77,6 +78,6 @@ arr2envblk(char **arr, char **envblk_out)
arrcnt++;
}
- free(tmp);
+ free(tmp);
return TRUE;
}
diff --git a/w32/subproc/sub_proc.c b/w32/subproc/sub_proc.c
index f0597b0..dcb77bf 100644
--- a/w32/subproc/sub_proc.c
+++ b/w32/subproc/sub_proc.c
@@ -15,9 +15,14 @@ A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>. */
+#include <config.h>
#include <stdlib.h>
#include <stdio.h>
-#include <stdint.h>
+#ifdef _MSC_VER
+# include <stddef.h> /* for intptr_t */
+#else
+# include <stdint.h>
+#endif
#include <process.h> /* for msvc _beginthreadex, _endthreadex */
#include <signal.h>
#include <windows.h>
@@ -25,7 +30,6 @@ this program. If not, see <http://www.gnu.org/licenses/>. */
#include "sub_proc.h"
#include "proc.h"
#include "w32err.h"
-#include "config.h"
#include "debug.h"
static char *make_command_line(char *shell_name, char *exec_path, char **argv);