summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2007-12-22 11:00:29 +0000
committerEli Zaretskii <eliz@gnu.org>2007-12-22 11:00:29 +0000
commitbe883de241f76937d03a0a623636a34a3d2b77c3 (patch)
tree8cab04530558d0cb2b127e5ee2d98d0ed9356dfa
parentc233a70323993168c93120b33d46feee306de155 (diff)
downloadgunmake-be883de241f76937d03a0a623636a34a3d2b77c3.tar.gz
config.h.W32: Include sys/types.h.
[!_PID_T_] (pid_t): Define only if not already defined.
-rw-r--r--ChangeLog3
-rw-r--r--config.h.W32.template5
2 files changed, 8 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index cc4760e..1803beb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2007-12-22 Eli Zaretskii <eliz@gnu.org>
+ * config.h.W32: Include sys/types.h.
+ [!_PID_T_] (pid_t): Define only if not already defined by sys/types.h.
+
* vpath.c (construct_vpath_list) [HAVE_DOS_PATHS]: Support VPATH
values that use `:' in drive letters, when PATH_SEPARATOR_CHAR is
also `:'.
diff --git a/config.h.W32.template b/config.h.W32.template
index 9a845a5..4ef1ab9 100644
--- a/config.h.W32.template
+++ b/config.h.W32.template
@@ -418,11 +418,16 @@ this program. If not, see <http://www.gnu.org/licenses/>. */
/* Define to empty if `const' does not conform to ANSI C. */
/* #undef const */
+#include <sys/types.h>
+
/* Define to `int' if <sys/types.h> doesn't define. */
#define gid_t int
/* Define to `int' if <sys/types.h> does not define. */
+/* GCC 4.x reportedly defines pid_t. */
+#ifndef _PID_T_
#define pid_t int
+#endif
/* Define to `int' if <sys/types.h> doesn't define. */
#define uid_t int