6637583: Build failure on latest Solaris, source missing include of resource.h?
authorohair
Tue, 04 Mar 2008 09:49:22 -0800
changeset 27 e0246cd553a5
parent 26 eb94dff5238c
child 28 a2b62af4c8c5
6637583: Build failure on latest Solaris, source missing include of resource.h? Summary: The include of sys/resource.h must be explicit Reviewed-by: xdono
jdk/src/solaris/hpi/native_threads/src/sys_api_td.c
--- a/jdk/src/solaris/hpi/native_threads/src/sys_api_td.c	Tue Mar 04 09:47:43 2008 -0800
+++ b/jdk/src/solaris/hpi/native_threads/src/sys_api_td.c	Tue Mar 04 09:49:22 2008 -0800
@@ -63,15 +63,8 @@
 #define CLOSEIO
 #endif /* NO_INTERRUPTIBLE_IO */
 
-/*
- * Linux <sys/resource.h> does not define rlim_t (solaris
- * does). THIS IS PROBABLY NOT THE RIGHT THING TO DO, so
- * somebody please fix this.
- */
-#ifdef __linux__
-typedef int rlim_t ;
-#endif
-
+/* Get typedef for rlim_t */
+#include <sys/resource.h>
 
 #ifdef CLOSEIO