Commit deae2ed9 by Mark Mitchell Committed by Mark Mitchell

configure.in (AC_TYPE_PID_T): Use it.

	* configure.in (AC_TYPE_PID_T): Use it.
	* configure: Regenerated.
	* getruntime.c: Include <sys/types.h>.
	* waitpid.c: Likewise.  Use pid_t, not int, as the type of "pid".

From-SVN: r53264
parent 2c7e9098
2002-05-07 Mark Mitchell <mark@codesourcery.com>
* configure.in (AC_TYPE_PID_T): Use it.
* configure: Regenerated.
* getruntime.c: Include <sys/types.h>.
* waitpid.c: Likewise. Use pid_t, not int, as the type of "pid".
2002-04-09 Richard Henderson <rth@redhat.com> 2002-04-09 Richard Henderson <rth@redhat.com>
* hashtab.c (higher_prime_number): Use 7 as minimum. * hashtab.c (higher_prime_number): Use 7 as minimum.
......
...@@ -138,6 +138,8 @@ then ...@@ -138,6 +138,8 @@ then
AC_DEFINE(HAVE_UINTPTR_T, 1, [Define if you have the \`uintptr_t' type.]) AC_DEFINE(HAVE_UINTPTR_T, 1, [Define if you have the \`uintptr_t' type.])
fi fi
AC_TYPE_PID_T
# This is the list of functions which libiberty will provide if they # This is the list of functions which libiberty will provide if they
# are not available on the host. # are not available on the host.
......
/* Return time used so far, in microseconds. /* Return time used so far, in microseconds.
Copyright (C) 1994, 1999 Free Software Foundation, Inc. Copyright (C) 1994, 1999, 2002 Free Software Foundation, Inc.
This file is part of the libiberty library. This file is part of the libiberty library.
Libiberty is free software; you can redistribute it and/or Libiberty is free software; you can redistribute it and/or
...@@ -22,6 +22,10 @@ Boston, MA 02111-1307, USA. */ ...@@ -22,6 +22,10 @@ Boston, MA 02111-1307, USA. */
#include "ansidecl.h" #include "ansidecl.h"
#include "libiberty.h" #include "libiberty.h"
/* On some systems (such as WindISS), you must include <sys/types.h>
to get the definition of "time_t" before you include <time.h>. */
#include <sys/types.h>
/* There are several ways to get elapsed execution time; unfortunately no /* There are several ways to get elapsed execution time; unfortunately no
single way is available for all host systems, nor are there reliable single way is available for all host systems, nor are there reliable
ways to find out which way is correct for a given host. */ ways to find out which way is correct for a given host. */
......
...@@ -13,13 +13,19 @@ does the return value. The third argument is unused in @libib{}. ...@@ -13,13 +13,19 @@ does the return value. The third argument is unused in @libib{}.
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
#include "config.h" #include "config.h"
#endif #endif
/* On some systems (such as WindISS), you must include <sys/types.h>
to get the definition of "pid_t" before you include <sys/wait.h>. */
#include <sys/types.h>
#ifdef HAVE_SYS_WAIT_H #ifdef HAVE_SYS_WAIT_H
#include <sys/wait.h> #include <sys/wait.h>
#endif #endif
int pid_t
waitpid (pid, stat_loc, options) waitpid (pid, stat_loc, options)
int pid, *stat_loc, options; pid_t pid;
int *stat_loc, options;
{ {
for (;;) for (;;)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment