]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
backport: natPosixProcess.cc: Include <sys/time.h> before <sys/resource.h> to restore...
authorRoger Sayle <roger@eyesopen.com>
Wed, 10 Oct 2007 17:51:17 +0000 (17:51 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Wed, 10 Oct 2007 17:51:17 +0000 (17:51 +0000)
Backport from mainline.
* java/lang/natPosixProcess.cc: Include <sys/time.h> before
<sys/resource.h> to restore bootstrap on powerpc-apple-darwin7.9.0.

From-SVN: r129214

libjava/ChangeLog
libjava/java/lang/natPosixProcess.cc

index cb936ae2481af25ed4a274743598ec4f048c415e..8a17c23b99be3e1262bd872aabdc3f58c84f2089 100644 (file)
@@ -1,3 +1,9 @@
+2007-10-10  Roger Sayle  <roger@eyesopen.com>
+
+       Backport from mainline.
+       * java/lang/natPosixProcess.cc: Include <sys/time.h> before
+       <sys/resource.h> to restore bootstrap on powerpc-apple-darwin7.9.0.
+
 2007-10-07  Release Manager
 
        * GCC 4.2.2 released.
index 77ac6925354fe835cc89dfbdf64a5e3cfc68bfc6..17dc654e540eb7be13c10e82ff0392ae9c520bd2 100644 (file)
@@ -17,6 +17,9 @@ details.  */
 #include <fcntl.h>
 #include <sys/types.h>
 #include <sys/wait.h>
+#ifdef HAVE_SYS_TIME_H
+#include <sys/time.h>
+#endif
 #ifdef HAVE_SYS_RESOURCE_H
 #include <sys/resource.h>
 #endif