Fix some mingw build warnings

These include:
   - Having a weird in_addr that can't be initialized with {0}
   - Needing INVALID_HANDLE_VALUE instead of -1 for file handles.
   - Having a weird dependent definition for struct stat.
   - pid is signed, not unsigned.
This commit is contained in:
Nick Mathewson
2012-06-05 11:06:26 -04:00
parent 2468a1bd2c
commit b482c870ca
5 changed files with 19 additions and 3 deletions
+4 -1
View File
@@ -3317,7 +3317,10 @@ process_handle_new(void)
{
process_handle_t *out = tor_malloc_zero(sizeof(process_handle_t));
#ifndef _WIN32
#ifdef _WIN32
out->stdout_pipe = INVALID_HANDLE_VALUE;
out->stderr_pipe = INVALID_HANDLE_VALUE;
#else
out->stdout_pipe = -1;
out->stderr_pipe = -1;
#endif