Include sys/types.h for pid_t on mingw. Fixes #670076.
authorZoltan Varga <vargaz@gmail.com>
Mon, 7 Feb 2011 22:30:52 +0000 (23:30 +0100)
committerZoltan Varga <vargaz@gmail.com>
Mon, 7 Feb 2011 22:32:44 +0000 (23:32 +0100)
eglib/configure.ac
eglib/src/glib.h
mono/mini/mini.h

index 7d52c708efba2d3e2851c22fe4069c4a10aa4986..659a4f61aac7cf0e49322141a0515910e34903aa 100644 (file)
@@ -126,7 +126,7 @@ if test "x$have_iso_varargs" = "xyes"; then
 fi
 AC_SUBST(G_HAVE_ISO_VARARGS)
 
-AC_CHECK_HEADERS(getopt.h sys/time.h sys/wait.h pwd.h langinfo.h iconv.h localcharset.h)
+AC_CHECK_HEADERS(getopt.h sys/time.h sys/wait.h pwd.h langinfo.h iconv.h localcharset.h sys/types.h)
 AC_CHECK_HEADER(alloca.h, [HAVE_ALLOCA_H=1], [HAVE_ALLOCA_H=0])
 AC_SUBST(HAVE_ALLOCA_H)
 
index 8b6082e83a9b2622eed69f0499709861851afad9..3485015468e00175f401f88fd53ae8db8ef1f81f 100644 (file)
 /* For pid_t */
 #ifndef WIN32
 #include <unistd.h>
+#else
+#ifdef HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
 #endif
 #endif
 
index 64d055ac30f8919ef21f39fee09287b781f1cf86..e480c526d8604fd23e69835e5891f6b7f8983906 100644 (file)
@@ -4,6 +4,9 @@
 #include "config.h"
 #include <glib.h>
 #include <signal.h>
+#ifdef HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
 #include <mono/metadata/loader.h>
 #include <mono/metadata/mempool.h>
 #include <mono/utils/monobitset.h>